/* looog landing page
   English (default) uses the cream editorial look of the US App Store listing.
   Traditional Chinese uses the dark + lime look of the Taiwan listing. */

:root {
  --bg: #F5EFE3;
  --ink: #2A2420;
  --muted: #5A4F45;
  --accent: #8B715A;
  --eyebrow: #765E49;
  --panel: #EDE3D4;
  --chip: #FFFFFF;
  --line: #DCCFBE;
  --dark: #1B201F;
  --dark-2: #242A28;
  --dark-muted: #BDBFB8;
  --lime: #C6E94D;
  --on-dark: #F5EFE3;
  --btn-bg: #1B201F;
  --btn-ink: #F5EFE3;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius-xl: 40px;
  --max: 1200px;
}

html[data-theme="dark"] {
  --bg: #111312;
  --ink: #F2F2EE;
  --muted: #B4B8B1;
  --accent: #C6E94D;
  --eyebrow: #C6E94D;
  --panel: #191C1A;
  --chip: #232826;
  --line: #2A2E2B;
  --dark: #1B201F;
  --btn-bg: #C6E94D;
  --btn-ink: #111312;
  --display: "Noto Sans TC", -apple-system, "PingFang TC", sans-serif;
  --sans: Inter, "Noto Sans TC", -apple-system, "PingFang TC", system-ui, sans-serif;
}

*, *::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;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--eyebrow); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

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

/* ---------- type ---------- */

.eyebrow {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--eyebrow);
}

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); }
.display--xl { font-size: clamp(60px, 8vw, 112px); letter-spacing: -0.02em; line-height: 0.95; }
.display--lg { font-size: clamp(46px, 5.5vw, 76px); }
.display--md { font-size: clamp(42px, 4.4vw, 60px); }

html[data-theme="dark"] .display { font-weight: 900; line-height: 1.15; letter-spacing: 0; }
html[data-theme="dark"] .display em { font-style: normal; }
html[data-theme="dark"] .display--xl { font-size: clamp(40px, 5vw, 64px); line-height: 1.15; }
html[data-theme="dark"] .display--lg { font-size: clamp(36px, 4.4vw, 56px); }
html[data-theme="dark"] .display--md { font-size: clamp(32px, 3.6vw, 46px); }

.lede { margin: 0; max-width: 500px; font-size: 19px; line-height: 1.65; color: var(--muted); }
.body { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.7; color: var(--muted); }

/* ---------- buttons & chips ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 17px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { color: var(--btn-ink); opacity: .92; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--lime { background: var(--lime); color: #1B201F; font-weight: 700; }
.btn--lime:hover { color: #1B201F; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--chip); color: var(--ink);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 2px 10px rgba(80, 60, 40, .08);
}
.chip--dark { background: #2A302E; color: var(--on-dark); box-shadow: none; font-size: 15px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ---------- header ---------- */

.site-header { padding: 24px 0; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font-size: 26px; font-weight: 800; letter-spacing: -1.2px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }

@media (max-width: 720px) {
  .nav a.nav-link { display: none; }
}

/* ---------- hero ---------- */

.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 40px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-bottom: 64px; }
.hero-art { flex: 1 1 420px; min-width: 0; align-self: flex-end; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 500px; border-radius: 32px 32px 0 0; }
@media (max-width: 720px) { .hero-copy { padding-bottom: 8px; } }
html[data-theme="dark"] .hero-art img { border-radius: 32px 32px 0 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- feature panels ---------- */

.features { max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 20px; }

.panel {
  border-radius: var(--radius-xl); overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center;
  background: var(--panel);
}
.panel--reverse { flex-wrap: wrap-reverse; }
.panel--dark { background: var(--dark); color: var(--on-dark); }
.panel--dark .eyebrow { color: var(--lime); }
.panel--dark .display em { color: var(--lime); }
.panel--dark .body { color: var(--dark-muted); }
html[data-theme="dark"] .panel { border: 1px solid #232724; }

.panel-copy { flex: 1 1 440px; min-width: 0; padding: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: 22px; }
.panel-copy .chip, .panel-copy .chips { align-self: flex-start; }
.panel-art { flex: 1 1 400px; min-width: 0; align-self: flex-end; display: flex; justify-content: center; }
.panel-art img { width: 100%; max-width: 520px; }
html[data-theme="dark"] .panel-art { padding: 40px 40px 0; }
html[data-theme="dark"] .panel-art img { max-width: 420px; border-radius: 28px 28px 0 0; }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.card { border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; }
.card-copy { padding: 56px 48px 24px; display: flex; flex-direction: column; gap: 18px; }
.card img { width: 100%; margin-top: auto; }
.card--tan { background: #C9B49C; color: #2A2420; }
.card--tan .eyebrow, .card--tan .display em { color: #4A3B2E; }
.card--tan .body { color: #3A2F25; }
.card--dark { background: var(--dark); color: var(--on-dark); }
.card--dark .eyebrow, .card--dark .display em { color: var(--lime); }
.card--dark .body { color: var(--dark-muted); }
html[data-theme="dark"] .card { border: 1px solid #232724; background: var(--panel); color: var(--ink); }
html[data-theme="dark"] .card .eyebrow, html[data-theme="dark"] .card .display em { color: var(--lime); }
html[data-theme="dark"] .card .body { color: var(--muted); }
html[data-theme="dark"] .card-copy { padding-bottom: 56px; }
@media (max-width: 520px) { .card-copy { padding: 44px 28px 20px; } }

/* ---------- privacy ---------- */

.privacy .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 100px; padding-bottom: 100px; }
.privacy-head { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.privacy-grid { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { padding: 26px; border-radius: 24px; background: var(--chip); display: flex; flex-direction: column; gap: 10px; }
.tile h3 { margin: 0; font-size: 18px; font-weight: 700; }
.tile p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- pricing ---------- */

.pricing { background: var(--dark); color: var(--on-dark); }
html[data-theme="dark"] .pricing { background: #0C0E0D; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing .container { padding-top: 110px; padding-bottom: 110px; display: flex; flex-direction: column; gap: 52px; }
.pricing .eyebrow, .pricing .display em { color: var(--lime); }
.section-head { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; max-width: 920px; width: 100%; margin: 0 auto; }
.plan { position: relative; padding: 40px; border-radius: 32px; display: flex; flex-direction: column; gap: 26px; }
.plan--free { background: var(--dark-2); }
.plan--pro { background: #F5EFE3; color: #2A2420; }
html[data-theme="dark"] .plan--pro { background: #1C2117; color: #F2F2EE; border: 2px solid var(--lime); }
.plan h3 { margin: 0; font-size: 20px; font-weight: 700; }
.price { margin: 0; font-family: var(--display); font-size: 72px; line-height: 1; }
html[data-theme="dark"] .price { font-family: Inter, sans-serif; font-weight: 900; font-size: 52px; letter-spacing: -1.5px; }
.price small { font-family: var(--sans); font-size: 17px; font-weight: 400; letter-spacing: 0; opacity: .75; }
.plan-note { margin: 0; font-size: 15px; opacity: .78; }
.badge { position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: #1B201F; font-size: 13px; font-weight: 700; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.ticks li { display: flex; gap: 12px; }
.ticks svg { flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan--free .btn { border: 1px solid #4A514E; color: var(--on-dark); }
.plan--pro .btn { background: #1B201F; color: #F5EFE3; }
html[data-theme="dark"] .plan--pro .btn { background: var(--lime); color: #111312; }
.fineprint { margin: 0; text-align: center; font-size: 13px; line-height: 1.7; color: #9DA09A; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; padding: 100px 24px; display: flex; flex-direction: column; gap: 32px; }
.faq .display { text-align: center; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  min-height: 64px; padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; color: var(--eyebrow); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 4px 24px; font-size: 16px; line-height: 1.75; color: var(--muted); }

/* ---------- final CTA & footer ---------- */

.cta { max-width: 1240px; margin: 0 auto; padding: 0 20px 80px; }
.cta-inner {
  border-radius: var(--radius-xl); background: var(--dark); color: var(--on-dark);
  padding: clamp(56px, 8vw, 110px) 24px;
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
html[data-theme="dark"] .cta-inner { background: var(--panel); border: 1px solid #232724; }
.cta-inner .display em { color: var(--lime); }
.cta-inner img { width: 88px; height: 88px; border-radius: 22px; border: 1px solid #343B38; }
.cta-inner p { margin: 0; font-size: 14px; color: #9DA09A; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; color: var(--muted); }
.site-footer .brand span { font-size: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.disclaimer { margin: 0; width: 100%; font-size: 13px; line-height: 1.6; }
