:root {
  --bg: #faf8f4;
  --paper: #fffefd;
  --warm: #f2ece3;
  --coral: #df6d63;
  --ink: #3f3933;
  --ink-soft: #6e665f;
  --muted: #9a928a;
  --line: #e7e0d7;
  --green: #748473;
  --primary: #df6d63;
  --max: 1120px;
  --display: 'LXGW WenKai TC', 'Noto Serif TC', 'Songti TC', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--display); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

/*
 * Legacy-shell guard: browsers can retain the previous homepage HTML while
 * revalidating CSS. Keep its image-only brand, lotus and phone media bounded
 * so a mixed cache can never expand them to their intrinsic pixel size.
 */
.brand > img:not(.brand-icon) { width: auto; max-width: 150px; height: 36px; object-fit: contain; }
.lotus { width: 60px; height: 60px; margin-inline: auto; }
.lotus svg { width: 100%; height: 100%; }
.phone { width: min(286px, 78vw); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.store-badge img { width: auto; max-width: 158px; height: 46px; object-fit: contain; }
.store-badge.google img { width: 158px; height: 46px; }
.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: 100px; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-150%); border-radius: 8px; background: var(--ink); color: white; padding: 8px 13px; }
.skip-link:focus { transform: none; }

.eyebrow { display: inline-block; margin-bottom: 14px; color: #b88962; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.17em; line-height: 1.5; text-transform: uppercase; }
.section-heading { max-width: 590px; margin-bottom: 44px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2,
.screens-head h2 { font-size: clamp(30px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.35; }
.section-heading p,
.screens-head > p { margin-top: 13px; color: var(--ink-soft); font-size: 15px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(63, 57, 51, 0.08); background: rgba(250, 248, 244, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-inner { display: flex; height: 70px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.nav-actions,
.nav-links { display: flex; align-items: center; }
.nav-actions { gap: 25px; }
.nav-links { gap: 23px; }
.nav-links a { color: var(--ink-soft); font-size: 14px; }
.nav-links a:hover { color: var(--coral); }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang-switch button { min-width: 36px; height: 30px; padding-inline: 7px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 10px; }
.lang-switch button.active { background: var(--coral); color: white; }

/* Hero */
.hero { overflow: hidden; padding-block: 82px 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr); align-items: center; gap: 88px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 650px; font-size: clamp(44px, 5.6vw, 58px); font-weight: 700; letter-spacing: -0.055em; line-height: 1.18; }
.hero h1 .accent { color: var(--coral); }
.hero-sub { max-width: 565px; margin-top: 25px; color: var(--ink-soft); font-size: 16px; line-height: 1.95; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.store-links a { display: block; border-radius: 8px; transition: transform 0.2s ease, opacity 0.2s ease; }
.store-links a:hover { transform: translateY(-2px); opacity: 0.86; }
.store-links img { width: auto; height: 46px; }
.store-links a:nth-child(2) img { width: 158px; height: 46px; object-fit: contain; }
.hero-meta { margin-top: 20px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 0.11em; text-transform: uppercase; }
.hero-visual { position: relative; display: grid; min-height: 565px; place-items: center; }
.visual-disc { position: absolute; width: 430px; aspect-ratio: 1; border-radius: 50%; background: var(--warm); }
.app-frame { position: relative; overflow: hidden; aspect-ratio: 1206 / 2622; border: 7px solid #25211d; border-radius: 42px; background: #25211d; box-shadow: 0 24px 60px rgba(64, 50, 38, 0.13); }
.app-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame { z-index: 1; width: 286px; transform: rotate(2.2deg); }

/* How it works */
.experience { border-block: 1px solid var(--line); background: var(--paper); }
.experience-flow { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.experience-step { min-height: 260px; padding: 36px 34px 38px; }
.experience-step + .experience-step { border-left: 1px solid var(--line); }
.step-number,
.feature-index { color: var(--coral); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; }
.experience-step h3 { margin-top: 20px; font-size: 23px; line-height: 1.4; }
.experience-step p { margin-top: 13px; color: var(--ink-soft); font-size: 14px; line-height: 1.85; }

/* Features */
.features { background: var(--bg); }
.feature-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); align-items: center; gap: 92px; }
.feature-visual { position: relative; min-height: 660px; }
.feature-demo { overflow: hidden; background: #fffdfa; box-shadow: 0 24px 60px rgba(64, 50, 38, 0.14); }
.demo-daily { position: absolute; top: 0; left: 2%; width: 66%; border: 1px solid var(--line); border-radius: 28px; padding: 14px 14px 12px; transform: rotate(-2deg); }
.demo-status { display: flex; justify-content: space-between; padding: 0 5px 9px; color: var(--ink); font-family: sans-serif; font-size: 9px; font-weight: 700; }
.daily-demo-head { display: flex; flex-direction: column; align-items: center; padding: 7px 4px 14px; text-align: center; }
.daily-demo-head span:first-child { color: var(--muted); font-size: 10px; }
.daily-demo-head strong { margin-top: 3px; font-size: 17px; font-weight: 700; }
.daily-demo-head span:last-child { margin-top: 4px; color: var(--green); font-size: 10px; }
.daily-demo-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: 4px; object-fit: cover; }
.demo-daily figcaption { display: flex; justify-content: space-between; align-items: center; padding: 10px 3px 0; color: var(--muted); font-size: 10px; }
.demo-daily figcaption strong { color: var(--coral); font-size: 17px; }
.demo-care { position: absolute; right: 0; bottom: 42px; z-index: 2; width: 58%; border: 1px solid #e6ddd1; border-radius: 25px; padding: 20px; transform: rotate(1.7deg); }
.care-demo-head { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.care-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #f3d6d1; color: #9f504b; font-family: var(--mono); font-weight: 500; }
.care-demo-head div { display: flex; flex-direction: column; }
.care-demo-head strong { font-size: 15px; line-height: 1.4; }
.care-demo-head div span { color: var(--muted); font-size: 10px; }
.care-cup { display: grid; min-height: 205px; place-items: center; background: radial-gradient(circle, #f5e9dd 0 42%, transparent 43%); }
.care-cup img { width: 132px; filter: drop-shadow(0 16px 13px rgba(82, 55, 34, 0.14)); }
.care-message { display: flex; flex-direction: column; align-items: center; border-top: 1px solid var(--line); padding-top: 13px; text-align: center; }
.care-message span { color: var(--ink-soft); font-size: 12px; }
.care-message strong { margin-top: 5px; color: var(--coral); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }
.feature-content .section-heading { margin-bottom: 30px; }
.feature-list { border-top: 1px solid var(--line); }
.feature-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-block: 23px; border-bottom: 1px solid var(--line); }
.feature-item h3 { font-size: 21px; line-height: 1.35; }
.feature-item p { margin-top: 7px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.feature-index { padding-top: 5px; }

/* Current screens */
.screens { border-top: 1px solid var(--line); background: var(--paper); }
.screens-head { display: grid; grid-template-columns: 1fr 0.72fr; align-items: end; gap: 70px; margin-bottom: 52px; }
.screens-head > p { margin: 0 0 3px; }
.screen-gallery { display: grid; max-width: 940px; grid-template-columns: repeat(3, 1fr); gap: 70px; margin-inline: auto; }
.screen-shot .app-frame { width: 100%; border-width: 6px; border-radius: 36px; box-shadow: 0 18px 45px rgba(64, 50, 38, 0.11); }
.screen-shot:nth-child(2) { margin-top: 38px; }
.screen-shot figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; text-align: center; }
.screen-shot figcaption strong { font-size: 18px; }
.screen-shot figcaption span { color: var(--muted); font-size: 13px; }

/* Trust & download */
.trust { border-top: 1px solid var(--line); background: #eef1eb; }
.trust-layout { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 88px; }
.trust-copy h2 { max-width: 430px; font-size: clamp(30px, 3.5vw, 40px); line-height: 1.35; }
.trust-copy > p { max-width: 470px; margin-top: 14px; color: var(--ink-soft); font-size: 15px; }
.trust-list { border-top: 1px solid rgba(63, 57, 51, 0.16); }
.trust-list article { display: grid; grid-template-columns: minmax(145px, 0.8fr) 1.2fr; gap: 28px; padding-block: 23px; border-bottom: 1px solid rgba(63, 57, 51, 0.16); }
.trust-list h3 { font-size: 18px; }
.trust-list p { color: var(--ink-soft); font-size: 14px; }

/* Footer */
.footer { background: #413a34; color: white; padding-block: 65px 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 70px; }
.footer .brand-icon { box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.footer-brand > p { margin-top: 12px; color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-links { display: flex; gap: 70px; }
.footer-links > div { display: flex; min-width: 84px; flex-direction: column; gap: 8px; }
.footer-links span { margin-bottom: 3px; color: rgba(255,255,255,0.45); font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-links a { color: rgba(255,255,255,0.74); font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; color: rgba(255,255,255,0.4); font-family: var(--mono); font-size: 9px; }

/* Legal pages */
.legal { display: none; max-width: 780px; margin: 0 auto; padding: 80px 28px 110px; }
.legal.active { display: block; }
.legal h1 { margin-bottom: 8px; font-size: 42px; line-height: 1.3; }
.legal .updated { margin-bottom: 34px; color: var(--muted); font-size: 13px; }
.legal .intro { margin-bottom: 42px; font-size: 17px; }
.legal h2 { margin-top: 42px; margin-bottom: 12px; font-size: 25px; }
.legal h3 { margin-top: 24px; margin-bottom: 6px; font-size: 18px; }
.legal p,
.legal li { color: var(--ink-soft); font-size: 15px; }
.legal ul { padding-left: 1.35em; }
.legal a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .feature-layout { gap: 56px; }
  .feature-visual { min-height: 600px; }
  .screen-gallery { gap: 36px; }
  .trust-layout { gap: 50px; }
}

@media (max-width: 820px) {
  .section { padding-block: 82px; }
  .hero { padding-block: 66px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 620px; }
  .hero-visual { min-height: 520px; }
  .experience-flow { grid-template-columns: 1fr; }
  .experience-step { min-height: 0; }
  .experience-step + .experience-step { border-top: 1px solid var(--line); border-left: 0; }
  .feature-layout { grid-template-columns: 1fr; }
  .feature-visual { min-height: 660px; }
  .screens-head { grid-template-columns: 1fr; gap: 14px; }
  .screen-gallery { max-width: 340px; grid-template-columns: 1fr; gap: 50px; }
  .screen-shot:nth-child(2) { margin-top: 0; }
  .trust-layout { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 19px; }
  .nav-inner { height: 66px; }
  .brand-icon { width: 33px; height: 33px; }
  .brand-name { font-size: 17px; }
  .lang-switch button { min-width: 33px; height: 28px; }
  .section { padding-block: 70px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2,
  .screens-head h2 { font-size: 31px; }
  .hero { padding-block: 52px 66px; }
  .hero h1 { font-size: 40px; line-height: 1.23; }
  .hero-sub { margin-top: 20px; font-size: 15px; }
  .store-links { gap: 9px; margin-top: 25px; }
  .store-links img { height: 40px; }
  .store-links a:nth-child(2) img { width: 138px; height: 40px; }
  .hero-visual { min-height: 480px; }
  .visual-disc { width: 350px; }
  .hero-frame { width: 246px; border-width: 6px; border-radius: 36px; }
  .experience-step { padding: 29px 24px 31px; }
  .experience-step h3 { font-size: 21px; }
  .feature-visual { min-height: 510px; }
  .demo-daily { width: 66%; padding: 10px; border-radius: 22px; }
  .daily-demo-head strong { font-size: 14px; }
  .demo-care { bottom: 24px; width: 59%; padding: 13px; border-radius: 20px; }
  .care-demo-head { grid-template-columns: 31px 1fr; }
  .care-avatar { width: 31px; height: 31px; }
  .care-demo-head strong { font-size: 12px; }
  .care-cup { min-height: 155px; }
  .care-cup img { width: 96px; }
  .feature-item { grid-template-columns: 30px 1fr; padding-block: 20px; }
  .feature-item h3 { font-size: 20px; }
  .screen-gallery { max-width: 292px; }
  .trust-copy h2 { font-size: 31px; }
  .trust-list article { grid-template-columns: 1fr; gap: 6px; }
  .footer-links { width: 100%; justify-content: space-between; gap: 28px 18px; }
  .footer-bottom { flex-direction: column; }
  .legal { padding: 58px 19px 90px; }
  .legal h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
