/* ===========================================================
   OrderFood Landing — 對齊 docs/DESIGN.md「Geniestudio」設計系統
   playful pastel sky · 近黑單一 CTA · 32px 大圓角 · hairline 邊框 ·
   極淡藍陰影 · 四色插畫點綴（Cornflower / Tangerine / Amethyst / Mustard）
   字體：Aeonik/Geist 以 Inter 替代（DESIGN.md substitute）＋ Noto Sans TC 中文
   =========================================================== */

:root {
  /* ---- Colors（DESIGN.md token） ---- */
  --color-sky-wash:        #ebf5ff;  /* 頁面畫布 */
  --color-paper-white:     #fafdff;  /* 卡片表面 */
  --color-cloud-veil:      #f6f7f8;
  --color-pure-white:      #ffffff;
  --color-midnight-ink:    #0a0d12;  /* 主文字／標題 */
  --color-pressed-charcoal:#181d27;  /* 系統唯一 filled 動作色 */
  --color-stone:           #535862;  /* 內文／hairline／icon stroke */
  --color-fog:             #93979f;  /* 輔助文字／次級邊框／disabled */

  /* 四色插畫 accent（僅供裝飾，不用於 UI 控制或文字） */
  --color-cornflower: #4fbeff;
  --color-tangerine:  #f26110;
  --color-amethyst:   #9552e0;
  --color-mustard:    #bb9915;

  --color-signal-blue: #0099ff;
  --color-deep-cobalt: #0069e0;

  /* tinted 卡片背景 */
  --color-morning-tint: #cce7ff;
  --color-lilac-mist:   #f1e6ff;
  --color-sprout:       #d3f6e3;

  /* gradients */
  --gradient-buttery:    linear-gradient(rgb(255, 249, 224) 0%, rgb(255, 236, 163) 100%);
  --gradient-sunset:     linear-gradient(rgb(255, 242, 235) 0%, rgb(255, 209, 184) 100%);
  --gradient-brand-blue: linear-gradient(135deg, rgb(71, 157, 255) 11.43%, rgb(0, 105, 224) 78.2%);

  /* hairline：以淡化的 Stone 呈現真正的細線分隔（取代 drop shadow） */
  --hairline:        rgba(83, 88, 98, 0.16);
  --hairline-strong: rgba(83, 88, 98, 0.28);

  /* ---- Border Radius（DESIGN.md scale：8 內層 / 16 icon·圖 / 24 / 32 卡·鈕） ---- */
  --radius-card:   32px;
  --radius-image:  16px;
  --radius-icon:   16px;
  --radius-inner:  8px;
  --radius-pill:   9999px;

  /* ---- Shadows（極淡藍 wash，不用深灰 drop） ---- */
  --shadow-lg:     rgba(4, 69, 144, 0.08) 0px 14px 20px 4px;
  --shadow-soft:   rgba(4, 69, 144, 0.06) 0px 6px 16px 0px;

  /* ---- Motion ---- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --dur:       0.22s;

  /* ---- Type ---- */
  --font: 'Inter', 'Noto Sans TC', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tracking-display: -0.02em;  /* Aeonik */
  --tracking-ui:      -0.01em;   /* Geist  */

  /* ---- Layout ---- */
  --maxw:  1200px;
  --touch: 48px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--tracking-ui);
  color: var(--color-midnight-ink);
  background: var(--color-sky-wash);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: var(--tracking-display);
  color: var(--color-midnight-ink);
  font-weight: 600;
}
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--color-signal-blue);
  outline-offset: 2px;
  border-radius: var(--radius-inner);
}

.skip-link {
  position: absolute; left: 16px; top: -56px;
  background: var(--color-pressed-charcoal); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  z-index: 100; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--touch);
  padding: 12px 28px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  letter-spacing: var(--tracking-ui);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 14px 32px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }

/* Primary：Pressed Charcoal —— 全頁唯一的視覺重量 */
.btn--primary { background: var(--color-pressed-charcoal); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Ghost：Paper White + hairline */
.btn--ghost { background: var(--color-paper-white); color: var(--color-midnight-ink); border-color: var(--hairline-strong); }
.btn--ghost:hover { border-color: var(--color-midnight-ink); transform: translateY(-2px); }

/* ---------- nav（透明浮動，捲動後加淡 Sky 玻璃感） ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(235, 245, 255, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; }
.brand__mark { display: inline-flex; width: 30px; height: 30px; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__name { font-size: 18px; letter-spacing: var(--tracking-display); color: var(--color-midnight-ink); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--color-stone); transition: color var(--dur) var(--ease); }
.nav__links a:hover { color: var(--color-midnight-ink); }
.nav__links .btn { color: #fff; }
.nav__links .btn--ghost { color: var(--color-midnight-ink); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 48px; height: 48px; padding: 12px;
  background: none; border: none; cursor: pointer;
}
.nav__toggle span { height: 2.5px; background: var(--color-midnight-ink); border-radius: 2px; transition: var(--dur) var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- doodle（四色飄浮塗鴉，純裝飾） ---------- */
.doodle { position: absolute; z-index: 0; pointer-events: none; opacity: 0.9; }
.doodle svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .doodle { animation: float 7s var(--ease) infinite; }
  .doodle--slow { animation-duration: 9s; }
  .doodle--delay { animation-delay: -3s; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 88% -10%, rgba(204, 231, 255, 0.7) 0%, transparent 60%),
    radial-gradient(46% 56% at -6% 108%, rgba(241, 230, 255, 0.6) 0%, transparent 60%),
    var(--color-sky-wash);
  padding-block: clamp(56px, 9vw, 112px);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--color-midnight-ink);
  background: var(--color-morning-tint);
  padding: 7px 16px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.eyebrow--center { display: block; width: fit-content; margin-inline: auto; }

.hero__title {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.06; font-weight: 600;
  letter-spacing: var(--tracking-display);
}
.hero__title .accent { color: var(--color-signal-blue); }
.hero__sub { margin-top: 22px; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--color-stone); max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__badges li {
  font-size: 13px; font-weight: 500; color: var(--color-stone);
  background: var(--color-paper-white); border: 1px solid var(--hairline);
  padding: 7px 14px; border-radius: var(--radius-pill);
}

/* hero 真實截圖：顧客手機（前層置中）＋ 商家接單卡片（左下浮貼） */
.hero__visual { position: relative; min-height: 480px; display: flex; justify-content: center; align-items: center; }

.shot-phone {
  position: relative; z-index: 2; margin: 0;
  width: min(62%, 280px);
  border: 9px solid var(--color-pressed-charcoal);
  border-radius: 36px;
  background: var(--color-pressed-charcoal);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot-phone img { display: block; width: 100%; height: auto; border-radius: 27px; }

.shot-board {
  position: absolute; left: 0; bottom: 6%; z-index: 3; margin: 0;
  width: min(66%, 340px);
  background: var(--color-paper-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-5deg);
}
.shot-board img { display: block; width: 100%; height: auto; }
.shot-board__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 12px; font-weight: 600;
  color: #fff; background: var(--color-pressed-charcoal);
  padding: 5px 11px; border-radius: var(--radius-pill);
}

/* ---------- sections（全頁 Sky Wash，靠留白分段） ---------- */
.section { position: relative; overflow: hidden; padding-block: clamp(64px, 10vw, 120px); }
.section__head { max-width: 660px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section__head h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; font-weight: 600; }
.section__head p { margin-top: 16px; color: var(--color-stone); font-size: clamp(16px, 2vw, 18px); line-height: 1.55; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 24px; position: relative; z-index: 1; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- tinted callout cards（痛點→價值，四色 wash） ---------- */
.card {
  position: relative;
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-6px); }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 26px; border-radius: var(--radius-icon); margin-bottom: 18px;
  background: var(--color-pure-white);
}
.card h3 { font-size: 20px; line-height: 1.25; margin-bottom: 10px; letter-spacing: var(--tracking-display); }
.card p  { color: var(--color-stone); font-size: 15px; line-height: 1.5; }

.card--blue   { background: var(--color-morning-tint); }
.card--purple { background: var(--color-lilac-mist); }
.card--green  { background: var(--color-sprout); }
.card--amber  { background: var(--gradient-buttery); }
.card--blue   .card__icon { color: var(--color-cornflower); }
.card--purple .card__icon { color: var(--color-amethyst); }
.card--green  .card__icon { color: #2bb673; }
.card--amber  .card__icon { color: var(--color-tangerine); }

/* ---------- feature columns（Paper White + hairline） ---------- */
.feature-col {
  background: var(--color-paper-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 32px 30px;
}
.feature-col--accent { background: var(--color-pure-white); border-color: var(--hairline-strong); box-shadow: var(--shadow-soft); }
.feature-col__top { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.feature-col__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--color-midnight-ink); background: var(--color-morning-tint);
  padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.feature-col--accent .feature-col__tag { background: var(--color-sprout); }
.feature-col h3 { font-size: 21px; line-height: 1.2; letter-spacing: var(--tracking-display); }

.ticks li {
  position: relative; padding-left: 28px; margin-bottom: 12px;
  color: var(--color-stone); font-size: 15px; line-height: 1.5;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23181d27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- flow steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.step {
  position: relative;
  background: var(--color-paper-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 30px 26px;
}
.step__n {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  font-size: 19px; font-weight: 600; color: #fff;
  background: var(--color-pressed-charcoal);
  border-radius: var(--radius-icon);
  letter-spacing: 0;
}
.step h3 { font-size: 18px; line-height: 1.25; margin-bottom: 10px; letter-spacing: var(--tracking-display); }
.step p  { color: var(--color-stone); font-size: 15px; line-height: 1.5; }

/* ---------- faq ---------- */
.faq__list details {
  background: var(--color-paper-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-image);
  padding: 4px 24px; margin-bottom: 12px;
  transition: border-color var(--dur) var(--ease);
}
.faq__list details[open] { border-color: var(--hairline-strong); }
.faq__list summary {
  cursor: pointer; list-style: none;
  padding: 20px 32px 20px 0; position: relative;
  font-weight: 600; font-size: 17px; color: var(--color-midnight-ink);
  letter-spacing: var(--tracking-ui);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' fill='none' stroke='%23181d27' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform var(--dur) var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(135deg); }
.faq__list details p { color: var(--color-stone); padding-bottom: 22px; font-size: 16px; line-height: 1.55; }

/* ---------- cta（Brand Blue Gradient 浮卡，全頁僅此一處 premium accent） ---------- */
.cta { padding-block: clamp(56px, 8vw, 96px); }
.cta__inner {
  position: relative; overflow: hidden;
  max-width: 960px; margin-inline: auto;
  background: var(--gradient-brand-blue);
  border-radius: var(--radius-card);
  padding: clamp(48px, 7vw, 80px) 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; color: #fff; }
.cta p { margin-top: 16px; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.cta .btn--primary { background: var(--color-pure-white); color: var(--color-midnight-ink); }
.cta .btn--primary:hover { background: var(--color-sky-wash); }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.cta__note { margin-top: 24px; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.cta__note code { background: rgba(255, 255, 255, 0.18); padding: 2px 8px; border-radius: var(--radius-inner); }

/* ---------- footer（淺色，維持 airy） ---------- */
.footer { background: var(--color-sky-wash); border-top: 1px solid var(--hairline); padding-block: 56px 32px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid var(--hairline); }
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; max-width: 340px; }
.footer__brand .brand__name { color: var(--color-midnight-ink); font-size: 18px; }
.footer__brand p { flex-basis: 100%; margin-top: 8px; font-size: 14px; color: var(--color-stone); line-height: 1.5; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; align-content: flex-start; }
.footer__links a { color: var(--color-stone); font-size: 14px; font-weight: 500; transition: color var(--dur) var(--ease); }
.footer__links a:hover { color: var(--color-midnight-ink); }
.footer__bottom { padding-top: 24px; font-size: 13px; color: var(--color-fog); }

/* ---------- scroll reveal（漸進增強：只有 .js 時才先隱藏） ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

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

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--color-paper-white);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: var(--dur) var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 8px; font-size: 16px; border-radius: var(--radius-inner); }
  .nav__links a:hover { background: var(--color-sky-wash); }
  .nav__links .btn { margin-top: 8px; }
  .nav__toggle { display: flex; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__sub { max-width: none; }
  .hero__visual { min-height: 440px; margin-top: 16px; }
  .grid--3 { grid-template-columns: 1fr; }
  .doodle--hide-sm { display: none; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .grid--4 { grid-template-columns: 1fr; }
  .steps   { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta__actions .btn { flex: 1 1 100%; }
  .hero__visual { min-height: 420px; }
  .shot-phone { width: min(64%, 240px); }
  .shot-board { width: min(78%, 290px); left: -2%; bottom: 2%; }
}
