/* nodwise.app: one light/dark token set, one accent (the green of "Allow"), pill buttons,
   20px panels. System fonts, so it looks at home next to the Apple apps it pairs with. */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f1f2f0;
  --text: #17181a;
  --muted: #5d6166;
  --line: #e3e4e1;
  --accent: #15803d;
  --accent-ink: #ffffff;
  --accent-soft: #e5f3ea;
  --shadow: 0 24px 60px -28px rgb(23 40 30 / 0.35);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111312;
    --surface: #181b19;
    --surface-2: #1f2321;
    --text: #eceeec;
    --muted: #a2a8a4;
    --line: #2b302d;
    --accent: #34c46a;
    --accent-ink: #08130c;
    --accent-soft: #16291d;
    --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-quiet { background: var(--surface-2); color: var(--text); }
.btn-quiet:hover { background: var(--line); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn i { font-size: 19px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 700; }
.hero p { font-size: 20px; color: var(--muted); margin: 0 0 32px; max-width: 34ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.phone { border-radius: 44px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.hero .phone { height: min(640px, 74vh); width: auto; justify-self: end; transform: rotate(2deg); }

/* Feature split */
.split { padding: 88px 0; }
.split .wrap { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; }
.split .phone { height: min(660px, 80vh); width: auto; justify-self: center; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 700; }
.lede { color: var(--muted); font-size: 19px; max-width: 52ch; margin: 0 0 32px; }
.points { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.points .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.points .ico i { font-size: 22px; }
.points h3 { margin: 0 0 2px; font-size: 18px; letter-spacing: -0.01em; }
.points p { margin: 0; color: var(--muted); font-size: 16px; }

/* Setup steps */
.steps { padding: 88px 0; border-top: 1px solid var(--line); }
.steps ol { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-size: 56px; font-weight: 700; letter-spacing: -0.04em; color: var(--accent); line-height: 1; margin-bottom: 18px; }
.steps h3 { margin: 0 0 6px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Privacy band */
.band { margin: 0 24px; border-radius: 28px; background: var(--accent-soft); padding: 80px 0; }
.band .wrap { max-width: 760px; text-align: left; }
.band p { font-size: 19px; color: var(--text); opacity: 0.82; margin: 0 0 22px; }
.band a.more { font-weight: 600; color: var(--accent); text-decoration: none; }
.band a.more:hover { text-decoration: underline; }

/* FAQ */
.faq { padding: 96px 0; }
.faq .wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 4px; max-width: 62ch; }

/* Text pages (privacy, support, download) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; }
.doc .meta { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 24px; margin: 48px 0 10px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--text); opacity: 0.88; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 28px 0; }
.panel h2 { margin-top: 0; }
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.req div { background: var(--surface-2); border-radius: 14px; padding: 16px; }
.req strong { display: block; font-size: 15px; }
.req span { color: var(--muted); font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Entry motion: the hero settles in once; nothing else moves on its own. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .rise-2 { animation-delay: 0.08s; }
  .rise-3 { animation-delay: 0.16s; }
  .hero .phone { animation: settle 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: 0; transform: translateY(28px) rotate(5deg); } to { opacity: 1; transform: rotate(2deg); } }
}

@media (max-width: 860px) {
  .nav-links .hide-sm { display: none; }
  .hero { padding: 40px 0 24px; }
  .hero .wrap, .split .wrap, .faq .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .phone { justify-self: center; height: auto; width: min(280px, 80vw); }
  .split .phone { order: 2; justify-self: center; height: auto; width: min(280px, 80vw); }
  .split, .steps, .faq { padding: 64px 0; }
  .steps ol { grid-template-columns: 1fr; gap: 32px; }
  .steps li, .steps li + li { padding: 0; border: 0; }
  .band { margin: 0 12px; padding: 56px 0; }
  .req { grid-template-columns: 1fr; }
  footer nav { margin-left: 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { gap: 12px; }
  .nav-links { gap: 14px; }
}
