/* ==========================================================
   Upfront Kiwi — brand tokens
   ========================================================== */
:root {
  --orange: #FF5A1F;
  --orange-deep: #E8460C;
  --orange-pale: #FFE3D3;
  --ink: #161616;
  --ink-soft: #3A3A3A;
  --muted: #6B6560;
  --base: #FFF8F2;
  --white: #FFFFFF;
  --teal: #00B3A6;
  --line: #EADFD5;

  --font-head: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22,22,22,.06), 0 12px 32px rgba(22,22,22,.08);
  --gutter: 20px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--base);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; }
h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.02rem;
  text-decoration: none; letter-spacing: -0.005em;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--orange-pale); }
.btn-light { background: var(--base); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 58px; width: auto; }
.logo-card { background: var(--white); border-radius: 14px; padding: 10px 16px; }
.logo-card img { height: 64px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  font-weight: 600; text-decoration: none; font-size: .98rem;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 3px no-repeat;
  transition: background-size .2s ease; padding-bottom: 2px;
}
.main-nav a:not(.btn):hover { background-size: 100% 3px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Common ---------- */
.eyebrow {
  font-family: var(--font-head); font-weight: 800; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--orange-deep); margin-bottom: 14px;
}
.eyebrow-light { color: var(--orange-pale); }
.eyebrow-orange { color: var(--orange); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }

.section { padding: 96px 0; }
section[id] { scroll-margin-top: 76px; }
.section-tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--white); }
.section-orange { background: var(--orange); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p:not(.eyebrow) { color: #CFC8C2; }

.hl {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  padding: .02em .14em .06em;
  border-radius: .14em;
  transform: rotate(-2deg);
}
.hl-light { color: var(--orange); }

.note { font-size: .92rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }

.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .98rem; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -10% 8% 4%;
  background: var(--orange); border-radius: 36px; transform: rotate(4deg); z-index: 0;
}

.sticker {
  position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 112px; height: 112px; border-radius: 50%;
  font-family: var(--font-head); line-height: 1; border: 3px solid var(--ink);
}
.sticker strong { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; }
.sticker span { font-size: .85rem; font-weight: 800; margin-top: 4px; }
.sticker-price { background: var(--white); color: var(--ink); top: -2%; left: -8%; transform: rotate(-12deg); box-shadow: 4px 4px 0 var(--ink); }
.sticker-days { background: var(--teal); color: var(--ink); bottom: 8%; right: -2%; transform: rotate(10deg); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Phone mock-ups ---------- */
.phone {
  position: relative; z-index: 2;
  width: 290px; aspect-ratio: 9 / 18.5;
  background: var(--ink); border-radius: 42px; padding: 12px;
  box-shadow: 0 30px 60px rgba(22,22,22,.28);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; background: var(--ink); border-radius: 12px; z-index: 2;
}
.phone-sm { width: 240px; }
.screen { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--white); }

.demo { --d-accent: var(--orange); --d-dark: #1E2A32; --d-soft: #F2EEE9; font-family: var(--font-body); display: flex; flex-direction: column; }
.demo-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 44px 16px 12px; background: var(--white);
}
.demo-logo { font-family: var(--font-head); font-weight: 800; font-size: .82rem; color: var(--d-dark); }
.demo-burger { width: 18px; height: 12px; border-top: 2.5px solid var(--d-dark); border-bottom: 2.5px solid var(--d-dark); position: relative; }
.demo-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -1.25px; height: 2.5px; background: var(--d-dark); }
.demo-hero { background: var(--d-dark); color: var(--white); padding: 22px 16px 24px; }
.demo-kicker { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; margin: 0 0 6px; font-weight: 600; }
.demo-title { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; }
.demo-btn { display: inline-block; background: var(--d-accent); color: var(--d-dark); font-weight: 700; font-size: .72rem; padding: 8px 14px; border-radius: 999px; }
.demo-mascot {
  flex: 1; position: relative; overflow: hidden; min-height: 0;
  background: linear-gradient(180deg, #FFF3EA 0%, #FFE3D3 100%);
}
.demo-mascot img {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-46%);
  height: 96%; width: auto; max-width: none;
}
.demo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.demo-cards span { height: 70px; border-radius: 10px; background: var(--d-soft); position: relative; overflow: hidden; }
.demo-cards span::after { content: ""; position: absolute; left: 10px; bottom: 10px; width: 50%; height: 6px; border-radius: 3px; background: var(--d-accent); opacity: .7; }
.demo-lines { padding: 0 16px; display: grid; gap: 8px; }
.demo-lines i { display: block; height: 8px; border-radius: 4px; background: var(--d-soft); }
.demo-lines i.short { width: 60%; }
.demo-stars { margin: auto 16px 22px; font-size: .78rem; color: #E8A400; letter-spacing: .1em; }
.demo-stars em { font-style: normal; color: var(--muted); letter-spacing: 0; font-size: .7rem; margin-left: 4px; }

.demo-trade { --d-accent: #FFC233; --d-dark: #1F2B33; --d-soft: #EEF1F3; }
.demo-beauty { --d-accent: #F4B6C2; --d-dark: #4A2F3C; --d-soft: #F8EEF0; }
.demo-cafe { --d-accent: #E9C48A; --d-dark: #2F5D50; --d-soft: #F1EFE7; }

/* ---------- Band ---------- */
.band { background: var(--ink); color: var(--white); overflow: hidden; border-top: 3px solid var(--ink); }
.band-track {
  display: flex; gap: 48px; width: max-content; padding: 18px 0;
  font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em;
  animation: scroll 28s linear infinite;
}
.band-track span { display: inline-flex; align-items: center; gap: 48px; }
.band-track span::after { content: "✕"; color: var(--orange); font-size: 1rem; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band-track { animation: none; } }

/* ---------- Problem ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > div > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.stats { display: grid; gap: 16px; }
.stat {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: 5px 5px 0 var(--orange);
}
.stat strong { font-family: var(--font-head); font-weight: 900; font-size: 2.3rem; letter-spacing: -0.03em; min-width: 4.4ch; line-height: 1; white-space: nowrap; }
.stat span { font-weight: 500; color: var(--ink-soft); line-height: 1.4; }
.source { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }

/* ---------- Packages ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--base); border: 2px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
}
.plan h3 { font-size: 1.6rem; margin-bottom: 4px; }
.plan-for { color: var(--muted); margin-bottom: 20px; }
.plan-featured { background: var(--white); border-color: var(--ink); box-shadow: 8px 8px 0 var(--orange); transform: translateY(-8px); }
.plan-badge {
  position: absolute; top: -15px; left: 28px;
  background: var(--ink); color: var(--white); font-family: var(--font-head); font-weight: 800;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px;
}
.price { font-family: var(--font-head); font-weight: 900; font-size: 3.4rem; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.price .cur { font-size: .5em; vertical-align: .75em; margin-right: 2px; }
.price small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-sm { font-size: 2.4rem; }
.incl { font-size: .88rem; color: var(--muted); margin: 6px 0 20px; }
.facts { list-style: none; padding: 14px 0; margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-weight: 500; }
.facts strong { font-family: var(--font-head); font-weight: 900; }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 30px; line-height: 1.45; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%23E8460C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan .btn { margin-top: auto; }

.paymonthly {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 36px 40px;
}
.paymonthly h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; }
.paymonthly p:not(.eyebrow) { color: #CFC8C2; margin: 0; max-width: 40em; }
.paymonthly .btn { flex: none; }

/* ---------- Care ---------- */
.care { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.care-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.care-card-grow { border-color: var(--ink); }
.care-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.care-top h3 { font-size: 1.6rem; margin: 0; }
.care-card .feature-list { margin-bottom: 0; }

.addons { margin-top: 48px; }
.addons h3 { font-size: 1.5rem; }
.addon-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.addon-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #D9CCC0; }
.addon-list strong { font-family: var(--font-head); font-weight: 800; white-space: nowrap; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: #222; border: 1px solid #333; border-radius: var(--radius); padding: 28px 24px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; margin-bottom: 18px;
}
.steps h3 { color: var(--white); }
.steps p { color: #CFC8C2; margin: 0; }

/* ---------- Examples ---------- */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.example { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.example .phone { box-shadow: 10px 10px 0 var(--orange); }
.example figcaption { color: var(--ink-soft); max-width: 18em; }
.example figcaption strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); margin-bottom: 4px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.pillar { background: var(--base); border-radius: var(--radius); padding: 26px 22px; border: 2px solid var(--line); }
.pillar-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--orange); color: var(--ink);
  font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; margin-bottom: 16px;
}
.pillar h3 { font-size: 1.2rem; margin-bottom: 6px; }
.pillar p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ---------- Offer ---------- */
.offer {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--orange-pale); border: 2px dashed var(--orange-deep); border-radius: 28px; padding: 44px 48px;
}
.offer h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.offer p:not(.eyebrow) { font-size: 1.1rem; margin: 0; max-width: 36em; }
.offer .btn { flex: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--base); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 0 24px; }
.faq details[open] { border-color: var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-family: var(--font-head); font-weight: 800; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 900; color: var(--orange-deep); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* ---------- Get started ---------- */
.start-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.start-copy h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.start-copy p { font-size: 1.15rem; max-width: 26em; }
.start-email a { font-weight: 700; }
.start-form {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 32px; box-shadow: 8px 8px 0 var(--ink); display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 2px solid #D9CCC0; border-radius: var(--radius-sm); background: var(--base);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field textarea { resize: vertical; min-height: 90px; }
.form-error { margin: 0; color: #B3261E; font-weight: 600; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFC8C2; padding: 64px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid #333; }
.footer-tag { margin: 14px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer-links a { text-decoration: none; font-weight: 600; color: var(--white); }
.footer-links a:hover { color: var(--orange); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; font-size: .9rem; }
.footer-base p { margin: 0; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .split, .start-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan-featured { transform: none; }
  .paymonthly, .offer { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .care { grid-template-columns: 1fr; }
  .addon-list { grid-template-columns: 1fr; }
  .examples { grid-template-columns: 1fr; gap: 56px; }
  .pillars { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--base); border-bottom: 2px solid var(--ink);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; background: none; }
  .main-nav .btn { margin-top: 16px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .lead { font-size: 1.08rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .steps, .pillars { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .start-form { padding: 24px 20px; box-shadow: 6px 6px 0 var(--ink); }
  .stat { padding: 18px; gap: 16px; }
  .stat strong { font-size: 1.9rem; }
  .sticker { width: 92px; height: 92px; }
  .sticker-price { left: 0; top: 0; }
  .sticker-days { right: 0; }
  .sticker strong { font-size: 1.5rem; }
  .phone { width: 250px; }
  .plan { padding: 28px 22px; }
  .price { font-size: 3rem; }
}
