/* LocalBrain: a quiet product journal. System fonts, real app captures, no runtime UI. */
:root {
  color-scheme: light;
  --bg: #f7f5ef; --bg-2: #eeece3; --surface: #fffdf8;
  --text: #252b25; --muted: #555e55; --faint: #666d63;
  --border: #cecfc3; --border-soft: #dedfd4; --accent: #36543f;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Hiragino Sans", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--font); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { text-wrap: pretty; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(100% - 80px, var(--maxw)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--border); background: var(--bg); }
.navwrap { display: grid; grid-template-columns: 1fr auto auto; gap: 36px; align-items: center; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.04em; font-weight: 720; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.navlinks, .lang-links { display: flex; gap: 22px; align-items: center; font-size: 13px; }
.lang-links { gap: 13px; flex-wrap: wrap; justify-content: flex-end; }
.navlinks a, .lang-links a { padding-block: 10px; }
.navlinks a:hover, .lang-links a:hover, .lang-links a[aria-current="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }
.hero { padding: 72px 0 84px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 70px; align-items: center; }
.pill, .eyebrow { display: block; color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .1em; margin: 0 0 26px; text-transform: uppercase; }
.pill::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 10px; vertical-align: 1px; }
h1 { margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", "Songti TC", "Noto Serif CJK TC", "Yu Mincho", Georgia, serif; font-size: clamp(42px, 4.8vw, 66px); line-height: 1.2; letter-spacing: -.045em; font-weight: 500; }
.sub { max-width: 490px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 21px; min-height: 50px; font-size: 14px; font-weight: 600; border: 1px solid transparent; border-radius: 4px; transition: background .15s; }
.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { background: #263e2d; }
.btn-secondary { border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-2); }
.cta-note { margin-top: 16px; color: var(--faint); font-size: 12px; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 630px; padding: 32px 24px 66px; background: #e7e9df; border: 1px solid #d6dacb; }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; width: 28px; height: 28px; border: 1px solid #a9b19f; }
.hero-visual::before { top: 15px; left: 15px; border-right: 0; border-bottom: 0; }
.hero-visual::after { bottom: 15px; right: 15px; border-left: 0; border-top: 0; }
.phone { position: relative; margin: 0; padding: 6px; width: 246px; background: #272d28; border-radius: 30px; box-shadow: 0 16px 30px #28312220; }
.phone img { width: 100%; height: auto; border-radius: 25px; }
.phone figcaption { position: absolute; left: -36px; right: -36px; bottom: -42px; font-size: 12px; text-align: center; color: #53604d; }
.orb, .phone-behind { display: none; }
.proof-strip { border-block: 1px solid var(--border); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-grid > div { padding: 26px 30px; border-left: 1px solid var(--border); }
.strip-grid > div:first-child { padding-left: 0; border: 0; }
.strip-grid strong { display: block; font-size: 14px; font-weight: 650; }
.strip-grid span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.section { padding: 96px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
h2 { max-width: 820px; margin: 0; font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.045em; line-height: 1.4; font-weight: 550; }
h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.lead { margin: 0; max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.95; }
h2 + .lead { margin-top: 22px; }
.intro .lead { padding-top: 5px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-top: 54px; }
.step { border-top: 1px solid #a8b09f; padding-top: 20px; }
.step > span { display: block; font-family: Georgia, serif; font-size: 36px; color: #788471; margin-bottom: 32px; }
.step p, .feature p { color: var(--muted); margin: 0; font-size: 14px; }
.memory-timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 44px 0 0; }
.memory-timeline article { border-top: 1px solid var(--border); padding: 22px 0; }
.memory-timeline time, .caption, .source-note { font-size: 12px; color: var(--faint); }
.memory-timeline h3 { font-family: Georgia, serif; font-size: 32px; margin: 14px 0 6px; }
.memory-timeline p { margin: 0; color: var(--muted); }
.memory-answer { padding: 32px 36px; margin-top: 12px; border-left: 3px solid var(--accent); background: var(--bg-2); max-width: 860px; }
.memory-answer .eyebrow { margin-bottom: 14px; }
.memory-answer p { margin-bottom: 0; }
.memory-links { font-size: 13px; color: var(--accent); margin-top: 24px; }
.privacy-section { background: #283d30; color: #f4f4e9; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.privacy-section .eyebrow, .privacy-section .lead, .privacy-card { color: #d3ddcd; }
.privacy-card { font-size: 15px; }
.privacy-card > p { margin-top: 0; }
.checklist { list-style: none; margin: 30px 0 0; padding: 0; }
.checklist li { padding: 13px 0; border-top: 1px solid #566756; }
.checklist li::before { content: "↳"; padding-right: 12px; color: #c6d5b9; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; margin-top: 40px; }
.feature { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--border); }
.feature h3 { font-size: 17px; }
.feature-grid > a { border-top: 1px solid var(--border); padding: 20px 0; font-size: 15px; }
.feature-grid > a:hover { color: var(--accent); text-decoration: underline; }
.specs { border-collapse: collapse; width: 100%; font-size: 14px; }
.specs th, .specs td { border-top: 1px solid var(--border); text-align: left; padding: 16px 0; vertical-align: top; }
.specs th { width: 26%; color: var(--muted); font-weight: 500; padding-right: 20px; }
.faq-section > .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0 80px; }
.faq-section .eyebrow { grid-column: 1; }
.faq-section h2 { grid-column: 1; }
.faq { grid-column: 2; grid-row: 1 / span 3; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; padding: 21px 0; font-size: 16px; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 23px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 0 30px 22px 0; font-size: 14px; }
.final-cta { padding: 90px 0; border-bottom: 1px solid var(--border); }
.final-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 0 30px; align-items: center; }
.final-card > img { grid-column: 1; grid-row: 1 / span 2; border-radius: 14px; width: 64px; height: 64px; }
.final-card h2 { grid-column: 2; font-size: clamp(26px, 3vw, 36px); }
.final-card p { grid-column: 2; color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.final-card .btn { grid-column: 3; grid-row: 1 / span 2; }
footer { padding: 32px 0; color: var(--muted); font-size: 12px; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
footer a:hover { text-decoration: underline; }
.reading { max-width: 880px; }
.reading h1 { font-size: clamp(38px, 5vw, 62px); }
.reading h2 { margin-top: 36px; font-size: 30px; }
.reading h1 + .lead { margin-top: 26px; }
.reading p a { text-decoration: underline; text-underline-offset: .2em; }
code { color: var(--accent); background: var(--bg-2); padding: 2px 4px; overflow-wrap: anywhere; }
.legal-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 100; padding: 12px; background: var(--surface); }
.skip-link:focus { top: 10px; }
@media (max-width: 1050px) {
  .navwrap { grid-template-columns: 1fr auto; gap: 20px; }
  .navlinks { display: none; }
  .hero-grid { gap: 35px; }
  .hero-visual { min-height: 580px; }
  .two-col, .privacy-grid { gap: 45px; }
  .feature { grid-template-columns: 1fr; gap: 0; }
  .final-card { grid-template-columns: 64px 1fr; }
  .final-card .btn { grid-column: 2; grid-row: 3; margin-top: 24px; justify-self: start; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .navwrap { min-height: 104px; grid-template-columns: 1fr; gap: 0; padding-block: 14px 8px; }
  .lang-links { justify-content: flex-start; gap: 20px; font-size: 12px; }
  .hero { padding: 46px 0; }
  .hero-grid, .two-col, .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
  h1 { font-size: clamp(38px, 9.8vw, 60px); }
  .sub { font-size: 16px; }
  .hero-visual { min-height: 0; padding: 28px 20px 64px; margin-top: 14px; }
  .phone { width: min(246px, 78%); }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid > div, .strip-grid > div:first-child { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--border); }
  .strip-grid > div:last-child { border-bottom: 0; }
  .strip-grid span { margin: 0; }
  .section { padding: 60px 0; }
  .eyebrow { margin-bottom: 18px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
  .step > span { margin-bottom: 18px; font-size: 30px; }
  .memory-timeline { gap: 20px; }
  .memory-timeline h3 { font-size: 25px; }
  .memory-answer { padding: 24px; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .faq-section > .wrap { display: block; }
  .faq { margin-top: 30px; }
  .final-cta { padding: 60px 0; }
  .final-card { display: block; }
  .final-card > img { margin-bottom: 24px; }
  .final-card .btn { margin-top: 24px; }
}
@media (max-width: 380px) { .steps { grid-template-columns: 1fr; } .lang-links { gap: 14px; } .memory-timeline { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
