/* Palette follows Dayavue/Design/DayTheme.swift (cream appearance, light and dark). */
.landing {
  --bg: #faf7ed; --bg-alt: #f3efdf; --surface: #fffdf5; --paper: #f4ecce;
  --ink: #22362c; --ink-soft: #46523f; --muted: #646b5a; --line: #ded9c3; --line-strong: #c9c4aa;
  --green: #35594a; --green-strong: #264537; --on-green: #fffdf3; --accent-text: #35594a;
  --preparation: #ede2bc; --journey: #e4d5a1; --journey-ink: #4f4a22;
  --event: #c0d2d9; --event-line: #9fbac4; --event-ink: #3d6475;
  --task: #b5c0a5; --task-line: #9aa889; --task-ink: #2f4a3c;
  --sun: #f6d873; --sun-soft: #fbe9a9; --cloud: #fffaf0;
  --phone: #1e2420; --shadow: 0 30px 60px -32px rgb(74 66 32 / .45);
  --radius: 22px;
  background: var(--bg); color: var(--ink); overflow-x: clip;
}
@media (prefers-color-scheme: dark) {
  .landing {
    --bg: #1d1c18; --bg-alt: #23221d; --surface: #2b2a24; --paper: #2d2b25;
    --ink: #f2edda; --ink-soft: #d6d0bb; --muted: #aaa48f; --line: #3b392f; --line-strong: #4b4839;
    --green: #3f6b58; --green-strong: #4d7d68; --on-green: #fbf8ec; --accent-text: #a9d2bc;
    --preparation: #444031; --journey: #4a4535; --journey-ink: #f0dfa0;
    --event: #2e4652; --event-line: #45606c; --event-ink: #b7d6e3;
    --task: #2d3a30; --task-line: #45584a; --task-ink: #cfe3d3;
    --sun: #6b5a24; --sun-soft: #3b3524; --cloud: #2f2d26;
    --phone: #0d0f0d; --shadow: 0 30px 60px -30px rgb(0 0 0 / .7);
  }
}

.landing .wrap { width: min(100% - 4rem, 1180px); }
.landing h1, .landing h2, .landing h3 { font-weight: 600; color: var(--ink); }
.landing h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 1.25rem; text-wrap: balance; }
.landing h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 .6rem; }
.landing p { line-height: 1.65; }
.landing a { color: inherit; }
.landing button { font: inherit; cursor: pointer; }
.landing :is(a, button, summary):focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; border-radius: 6px; }
.landing .eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .1em; margin-bottom: 1.1rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; }

/* Header */
.landing .site-header { position: sticky; top: 0; z-index: 20; width: 100%; max-width: none; padding: 0; border: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.landing .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.25rem; font-weight: 650; letter-spacing: -.035em; text-decoration: none; }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; align-items: center; gap: 1.6rem; font-size: .92rem; flex-wrap: nowrap; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.landing .nav-cta { padding: .5rem .95rem; border-radius: 100px; background: var(--green); color: var(--on-green); font-weight: 550; }
.landing .site-header nav .nav-cta:hover { background: var(--green-strong); color: var(--on-green); }
.landing .language-switch { border-color: var(--line-strong); }
.landing .language-switch a { color: var(--ink-soft); min-width: 32px; min-height: 32px; font-size: .74rem; }
.landing .language-switch a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.landing .language-switch a:not([aria-current]):hover { background: var(--bg-alt); }

/* Buttons */
.landing .button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 100px; font-size: .98rem; padding: .9rem 1.4rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.landing .button-primary { background: var(--green); color: var(--on-green); box-shadow: 0 10px 24px -14px rgb(38 69 55 / .8); }
.landing .button-primary:hover { background: var(--green-strong); }
.text-link { text-decoration: none; font-weight: 600; color: var(--accent-text); }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }

/* Hero */
.landing-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; padding-block: 72px 88px; }
.status-dot { width: 7px; height: 7px; background: #6f9a72; border-radius: 50%; box-shadow: 0 0 0 4px rgb(111 154 114 / .2); }
.landing h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.055em; margin: 0 0 1.5rem; }
.landing h1 span { color: var(--accent-text); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-footnote { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; padding: 0; margin: 1.6rem 0 0; font-size: .86rem; color: var(--muted); }
.hero-footnote li { display: flex; align-items: center; gap: .45rem; margin: 0; }
.hero-footnote li::before { content: ''; width: 5px; height: 9px; margin: 0 .2rem -1px .15rem; border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); flex-shrink: 0; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.sky { position: absolute; inset: 4% 2% 6%; border-radius: 48px; overflow: hidden; background: radial-gradient(circle at 20% 20%, var(--sun) 0 9%, transparent 9.4%), radial-gradient(ellipse 34% 13% at 14% 92%, var(--cloud) 97%, transparent 100%), radial-gradient(ellipse 26% 15% at 38% 97%, var(--cloud) 97%, transparent 100%), radial-gradient(ellipse 36% 12% at 86% 94%, var(--cloud) 97%, transparent 100%), radial-gradient(ellipse 15% 4.5% at 90% 46%, var(--cloud) 96%, transparent 100%), radial-gradient(ellipse 12% 4% at 10% 34%, var(--cloud) 96%, transparent 100%), linear-gradient(180deg, var(--sun-soft), color-mix(in srgb, var(--sun-soft) 45%, var(--bg)) 80%); }
.phone { position: relative; margin: 0; width: 290px; padding: 9px; border-radius: 50px; background: var(--phone); box-shadow: var(--shadow), inset 0 0 0 1.5px rgb(255 255 255 / .12); }
.phone img { display: block; width: 100%; height: auto; border-radius: 41px; background: var(--paper); }
.hero-phone { z-index: 1; transform: rotate(3deg); }
.hero-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; left: 0; bottom: 18%; padding: 13px 18px 13px 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgb(60 52 22 / .45); font-size: .9rem; line-height: 1.35; transform: rotate(-3deg); }
.hero-chip small { display: block; color: var(--muted); font-size: .8rem; }
.chip-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--journey); flex-shrink: 0; }
.chip-icon img { width: 24px; height: 24px; }
@media (prefers-color-scheme: dark) { .chip-icon img, .connection-strip img, img.plan-symbol { filter: brightness(0) invert(.86) sepia(.35) hue-rotate(45deg); } }

/* Connection strip */
.connection-strip { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); align-items: center; gap: 1.5rem; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.connection-strip p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.connection-strip strong { display: block; color: var(--ink); font-weight: 600; }
.connection-strip > span { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 550; line-height: 1.3; }
.connection-strip > span small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.connection-strip img { width: 32px; height: 32px; flex-shrink: 0; }

.section-space { padding-block: 112px; }
:is(.landing-hero, .demo-section, .feature-row, .privacy-section, .faq-section, .duo-section) > * { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 56px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 24rem; color: var(--muted); margin: 0 0 6px; }

/* Interactive demo */
.demo-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6%; }
.control-label { font-size: .92rem; font-weight: 600; margin: 2rem 0 .7rem; }
.transport-switch { display: inline-flex; flex-wrap: wrap; padding: 4px; border: 1px solid var(--line); border-radius: 100px; background: var(--bg-alt); gap: 2px; }
.transport-switch button { background: transparent; border: 0; border-radius: 100px; padding: .65rem 1.15rem; color: var(--ink-soft); font-size: .92rem; font-weight: 550; }
.transport-switch button[aria-pressed=true] { background: var(--green); color: var(--on-green); box-shadow: 0 2px 6px rgb(38 69 55 / .25); }
.demo-result { font-size: .95rem; font-weight: 550; margin-block: 1rem; min-height: 1.6em; color: var(--accent-text); }
.small-print { font-size: .82rem; color: var(--muted); max-width: 28rem; }
.demo-paper { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 28px 28px 22px; box-shadow: var(--shadow); }
.paper-heading { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; font-size: 1.05rem; font-weight: 650; }
.paper-date { font-size: .74rem; letter-spacing: .08em; font-weight: 550; color: var(--muted); }
.plan-location { font-size: .82rem; color: var(--muted); margin: 20px 0 10px 76px; }
.plan-row { display: flex; gap: 22px; position: relative; margin-bottom: 10px; }
.plan-row::before { content: ''; position: absolute; left: 62px; top: -12px; bottom: -12px; width: 1px; background: var(--line-strong); }
.plan-row > time, .flexible-time { width: 52px; flex-shrink: 0; text-align: right; padding-top: 19px; font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.plan-row > time::after { content: ''; position: absolute; top: 28px; left: 59px; width: 7px; height: 7px; background: var(--muted); border-radius: 50%; }
.plan-card { display: flex; gap: 12px; align-items: center; width: 100%; min-width: 0; overflow-wrap: anywhere; min-height: 70px; padding: 12px 16px; border-radius: 16px; }
.plan-card strong { display: block; font-size: .98rem; font-weight: 650; }
.plan-card div > span { display: block; font-size: .8rem; opacity: .8; margin-top: 1px; }
.preparation { background: var(--preparation); color: var(--journey-ink); }
.journey { background: var(--journey); color: var(--journey-ink); }
.plan-symbol { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.plan-symbol [hidden] { display: none; }
.appointment { background: var(--event); border-radius: 6px; border: 1px solid var(--event-line); color: var(--ink); }
.event-symbol, .task-symbol { display: block; height: 20px; width: 20px; flex-shrink: 0; border: 1.8px solid var(--event-ink); border-radius: 5px; }
.task { background: var(--task); border: 1px solid var(--task-line); color: var(--ink); }
.task-symbol { border-radius: 50%; border-color: var(--task-ink); }
.flexible-time { font-size: .76rem; color: var(--muted); padding-top: 26px; font-weight: 500; }
.paper-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: .8rem; color: var(--muted); }
.legend-dot { width: 6px; height: 6px; background: var(--accent-text); border-radius: 50%; }

/* Screens */
.screens-section { background: var(--bg-alt); border-block: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6%; padding-block: 34px; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row:nth-child(even) .feature-copy { order: 2; }
.feature-copy { max-width: 30rem; }
.feature-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.feature-number { display: block; font-size: .78rem; font-weight: 650; letter-spacing: .1em; color: var(--muted); margin-bottom: .9rem; }
.feature-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.feature-points li { position: relative; padding-left: 1.6rem; margin: 0; color: var(--ink-soft); font-size: .95rem; }
.feature-points li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent-text); }
.feature-stage { position: relative; display: grid; place-items: center; padding: 44px 24px; border-radius: 34px; overflow: hidden; }
.feature-stage .phone { width: 270px; }
.stage-sand { background: linear-gradient(160deg, #eedcb7, #e3cea4); }
.stage-green { background: linear-gradient(160deg, #dde5cd, #cdd8bb); }
.stage-blue { background: linear-gradient(160deg, #d9e4e6, #c6d6da); }
@media (prefers-color-scheme: dark) {
  .stage-sand { background: linear-gradient(160deg, #3a3326, #2f2a20); }
  .stage-green { background: linear-gradient(160deg, #2c3528, #252d22); }
  .stage-blue { background: linear-gradient(160deg, #283338, #222b2f); }
}
.screen-link { display: block; border-radius: 50px; text-decoration: none; transition: transform .3s ease; }
.screen-link:hover { transform: translateY(-6px); }
.screens-caption { font-size: .85rem; color: var(--muted); margin: 32px 0 0; text-align: center; }

/* More features */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.more-card { padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.more-card h3 { font-size: 1.1rem; margin: 16px 0 .45rem; }
.more-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.more-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bg-alt); color: var(--accent-text); }
.more-icon svg { width: 24px; height: 24px; }

/* Day & night */
.duo-section { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 6%; }
.duo { display: flex; justify-content: center; align-items: flex-start; }
.duo .phone { width: 250px; }
.duo .phone + .phone { margin-left: -36px; margin-top: 70px; }
.duo .phone:first-child { transform: rotate(-3deg); }
.duo .phone:last-child { transform: rotate(3deg); }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.swatches li { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .4rem .8rem .4rem .45rem; border: 1px solid var(--line); border-radius: 100px; font-size: .88rem; background: var(--surface); }
.swatches li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .1); background: var(--swatch); }
.swatches .soft { --swatch: #f2e5a2; }.swatches .cream { --swatch: #f4ecce; }.swatches .sand { --swatch: #e8dcc4; }.swatches .vivid { --swatch: #f4d84b; }

/* Privacy */
.privacy-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.privacy-section > div > p:not(.eyebrow) { color: var(--ink-soft); max-width: 30rem; margin-bottom: 1.5rem; }
.principles { margin: 0; display: grid; gap: 14px; }
.principles > div { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.principles dt { font-size: 1.02rem; font-weight: 650; }
.principles dd { margin: 6px 0 0; font-size: .95rem; color: var(--muted); line-height: 1.6; }

/* FAQ */
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; padding-block: 0 112px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 1.04rem; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); font-size: 1.1rem; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { font-size: .98rem; color: var(--ink-soft); margin: 0 48px 24px 0; }

/* Beta */
.beta-box { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 64px 72px; border-radius: 34px; overflow: hidden; background: linear-gradient(135deg, var(--green-strong), var(--green)); color: var(--on-green); }
.beta-box::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgb(246 216 115 / .2), transparent 65%); pointer-events: none; }
.beta-copy { position: relative; z-index: 1; }
.landing .beta-box h2 { color: var(--on-green); margin-bottom: .9rem; }
.beta-box .eyebrow { color: rgb(255 253 243 / .75); }
.beta-copy > p:not(.eyebrow, .beta-note) { font-size: 1.08rem; color: rgb(255 253 243 / .88); margin-bottom: 1.8rem; max-width: 30rem; }
.landing .beta-box .button-primary { background: var(--on-green); color: #264537; box-shadow: none; }
.landing .beta-box .button-primary:hover { background: #fff; }
.beta-note { font-size: .86rem; color: rgb(255 253 243 / .75); margin: 1.2rem 0 0; }
.beta-note a { color: var(--on-green); }
.beta-icon { position: relative; z-index: 1; width: 168px; height: 168px; transform: rotate(6deg); filter: drop-shadow(0 22px 30px rgb(0 0 0 / .3)); }

/* Footer */
.landing footer { margin-top: 112px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem 2rem; padding-block: 36px 44px; border-top: 1px solid var(--line); color: var(--muted); }
.landing footer .brand { font-size: 1.1rem; }
.footer-tagline { font-size: .86rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: .4rem; }
.landing footer nav { display: flex; gap: 1.4rem; font-size: .9rem; }
.landing footer nav a { color: var(--ink-soft); text-decoration: none; }
.landing footer nav a:hover { color: var(--ink); text-decoration: underline; }
.copyright { font-size: .86rem; }

@media (max-width: 1080px) {
  .landing .wrap { width: calc(100% - 3rem); }
  .landing-hero { gap: 1.5rem; }
  .hero-visual { min-height: 540px; }
  .phone { width: 260px; }
  .connection-strip { grid-template-columns: repeat(3, 1fr); }
  .connection-strip p { grid-column: 1 / -1; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .beta-box { padding: 52px; }
  .demo-paper { padding: 22px 18px; }
}
@media (max-width: 820px) {
  .desktop-link { display: none; }
  .site-header nav { gap: .8rem; }
  .landing-hero { grid-template-columns: 1fr; padding-block: 48px 56px; gap: 2.5rem; }
  .hero-visual { min-height: 0; padding-block: 36px; }
  .hero-chip { left: 4%; bottom: 12%; }
  .section-space { padding-block: 80px; }
  .section-heading { display: block; margin-bottom: 36px; }
  .section-heading > p { margin-top: 1rem; }
  .demo-section, .privacy-section, .faq-section, .duo-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-section { padding-bottom: 80px; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row:nth-child(even) .feature-copy { order: 0; }
  .duo-section .duo { order: 2; }
  .beta-box { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .beta-icon { width: 112px; height: 112px; order: -1; }
  .landing footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .landing .wrap { width: calc(100% - 2rem); }
  .header-inner { height: 62px; }
  .landing .brand { font-size: 1.12rem; }
  .brand img { width: 32px; height: 32px; }
  .site-header .nav-cta { display: none; }
  .landing h1 { font-size: clamp(2.45rem, 11.5vw, 3.2rem); }
  .lead { font-size: 1.02rem; }
  .landing .button { width: 100%; }
  .hero-actions { gap: 1rem; }
  .sky { inset: 0; border-radius: 32px; }
  .phone { width: min(240px, 66vw); padding: 7px; border-radius: 42px; }
  .phone img { border-radius: 35px; }
  .hero-chip { left: 0; bottom: 6%; font-size: .82rem; padding: 10px 14px 10px 10px; }
  .connection-strip { grid-template-columns: 1fr; padding: 22px; gap: 1rem; }
  .demo-paper { padding: 20px 12px 16px; border-radius: 22px; }
  .plan-row { gap: 16px; }
  .plan-row::before { left: 56px; }
  .plan-row > time::after { left: 53px; }
  .plan-location { margin-left: 70px; }
  .plan-card { gap: 9px; padding: 11px 12px; }
  .plan-card strong { font-size: .9rem; }
  .plan-card div > span { font-size: .74rem; }
  .plan-row > time { font-size: .9rem; }
  .transport-switch button { padding: .6rem .9rem; }
  .feature-stage { padding: 28px 12px; border-radius: 26px; }
  .feature-stage .phone { width: min(240px, 66vw); }
  .more-grid { grid-template-columns: 1fr; }
  .duo .phone { width: min(190px, 46vw); }
  .duo .phone + .phone { margin-left: -24px; margin-top: 48px; }
  .beta-box { padding: 36px 22px; border-radius: 26px; }
  .faq-list details p { margin-right: 0; }
  .landing footer nav { flex-wrap: wrap; gap: .6rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .screen-link, .faq-list summary::after { transition: none; } .screen-link:hover { transform: none; } }
