/* AliCheckout – shared stylesheet */
:root {
  --accent: #e8311a;
  --accent-dark: #c4260f;
  --accent-soft: #fdeae7;
  --dark: #16181d;
  --text: #16181d;
  --muted: #6b7280;
  --bg: #f6f6f8;
  --card: #ffffff;
  --border: #e7e8ec;
  --green: #15803d;
  --green-soft: #e7f6ec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 8px 24px rgba(22, 24, 29, 0.06);
  --container: 1100px;
  --font: -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--dark); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
small { font-size: 0.85em; }
code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.92em; background: #eef0f3; padding: 0.1em 0.4em; border-radius: 5px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--dark); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--dark); text-decoration: none; }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: #fff; font-weight: 700; }
.nav-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font: inherit; color: var(--dark); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--dark); border-color: var(--border); }
.btn-secondary:hover { border-color: #cfd2d8; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.08rem; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 60px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 26px; font-size: 1.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-note { color: var(--muted); font-size: 0.9rem; }
.hero-note span { margin-right: 14px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: #fff; border: 1px solid var(--border); color: var(--dark); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* Cards & grids */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Steps */
.step { position: relative; }
.step-num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.step img { border-radius: var(--radius-sm); border: 1px solid var(--border); margin-top: 16px; width: 100%; height: auto; }

/* Feature rows (image + text) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff; }
.feature-text h3 { font-size: 1.5rem; margin-bottom: 12px; }

/* Result examples */
.result-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.result-list li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.95rem; }
.result-list li strong { display: block; margin-bottom: 2px; }
.result-ok { color: var(--green); font-weight: 700; }
.result-warn { color: #b45309; font-weight: 700; }
.result-info { color: #1d4ed8; font-weight: 700; }

/* Feature grid */
.feature-card h3 { margin-top: 10px; }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }

/* Savings section */
.savings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.savings-grid img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
table.compare th, table.compare td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare th { background: var(--bg); font-weight: 700; }
table.compare tr:last-child td { border-bottom: 0; }

/* Video */
.video-wrap { max-width: 900px; margin: 0 auto; }
.video-wrap video { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: #000; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); line-height: 1; flex-shrink: 0; transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: #374151; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Callouts */
.callout { border-left: 4px solid var(--accent); background: #fff; border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; }
.callout.neutral { border-left-color: #9ca3af; }
.callout p:last-child { margin-bottom: 0; }

/* Privacy summary */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.check-list.no li::before { content: "✕"; color: var(--accent); }

/* CTA band */
.cta-band { background: var(--dark); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7c9d1; max-width: 620px; margin: 0 auto 26px; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-secondary:hover { border-color: #fff; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 44px 0 28px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-grid h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dark); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--dark); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; }
.disclosure { font-size: 0.88rem; color: var(--muted); }

/* Legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; margin-top: 36px; }
.legal h3 { font-size: 1.1rem; margin-top: 24px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .feature-row, .savings-grid, .privacy-grid { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 40px; }
  section { padding: 56px 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .main-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 20px 16px; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .main-nav .btn { margin-top: 12px; border-bottom: 0; }
  #nav-toggle:checked ~ .main-nav { display: flex; }
  .nav-toggle { display: inline-block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .header-inner { height: 60px; }
  .main-nav { top: 60px; }
}

.video-credit { margin: 10px 0 0; text-align: center; font-size: 0.8rem; color: var(--muted); }
