/* Shared finishing layer for the selected daylight homepage. */
:root { --editorial-rule: color-mix(in srgb,var(--ink) 18%,transparent); }
body { -webkit-font-smoothing: antialiased; }
.nav { backdrop-filter: blur(12px); }
.brand { font-weight: 750; letter-spacing: -.04em; }
.brand small { letter-spacing: .12em; }
.nav nav { background: transparent; border: 0; border-radius: 0; padding: 0; gap: 24px; font-weight: 750; }
.nav nav a { position: relative; border-radius: 0; padding: 8px 0; }
.nav nav a::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav nav a:hover, .nav nav a:focus-visible { background: transparent; }
.nav nav a:hover::after, .nav nav a:focus-visible::after { transform: scaleX(1); }
.button { border-radius: 5px; font-weight: 650; padding: 12px 20px; }
.hero .actions { gap: 12px; }
.hero .actions .button.plain { border-color: var(--muted); color: var(--ink); background: color-mix(in srgb,var(--panel) 40%,transparent); }
.hero .actions .button.plain:hover { border-color: var(--ink); background: var(--panel); }
.kicker { font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.hero-copy .kicker span { display: none; }
.hero h1 { font-size: clamp(30px,3.2vw,44px); line-height: 1.25; letter-spacing: -.045em; font-weight: 600; }
.hero h1 em { display: inline-block; margin-top: 12px; color: var(--amber); font-size: clamp(88px,9vw,128px); line-height: 1.05; letter-spacing: -.06em; font-weight: 800; }
.lead { font-size: 17px; line-height: 1.85; max-width: 420px; }
.platform { margin-top: 20px; font-size: 12px; }
.hero-phone { transform: rotate(-6deg); }
.hero-art .halo {
  background: radial-gradient(circle at 50% 35%,var(--panel) 0%,var(--sea-glass) 58%,color-mix(in srgb,var(--teal) 22%,var(--sea-glass)) 100%);
  border: 1px solid color-mix(in srgb,var(--teal) 40%,var(--panel));
  opacity: .5;
}
.phone { box-shadow: 0 20px 44px var(--sea-shadow); }
.section-head h2, .faq-section h2, .story-copy h2 { font-size: clamp(30px,3.2vw,44px); line-height: 1.3; letter-spacing: -.045em; font-weight: 700; }
.section-head { margin-bottom: 32px; }
.section-head p:not(.kicker) { line-height: 1.8; }
.feature-categories { border-left: 0; padding-left: 0; }
.category-prompt { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.category-prompt > span, .preview-step { display: none; }
.feature-options { gap: 0; border-top: 1px solid var(--editorial-rule); }
.feature-options button { border: 0; border-bottom: 1px solid var(--editorial-rule); border-radius: 0; background: transparent; padding: 16px 12px; min-height: 76px; }
.feature-options b { font-size: 20px; font-weight: 650; letter-spacing: -.035em; }
.feature-options button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.feature-options button:not([aria-pressed=true]):hover { background: color-mix(in srgb,var(--panel) 60%,transparent); border-color: var(--editorial-rule); }
.feature-preview { align-items: end; }
.feature-detail h3 { font-weight: 650; letter-spacing: -.035em; }
.preview-prompt { margin-top: 24px; font-size: 12px; font-weight: 500; }
.screen-switch button { border-radius: 4px; background: transparent; min-height: 60px; }
.screen-switch button:hover { transform: none; }
.screen-switch button[aria-pressed=true] { background: color-mix(in srgb,var(--panel) 70%,transparent); box-shadow: none; }
.screen-switch .screen-arrow { font-size: 16px; }
.story-intro { margin-top: 20px; line-height: 1.8; }
.story-choices { gap: 0; margin-top: 28px; border-top: 1px solid var(--editorial-rule); }
.story-choice { border: 0; border-bottom: 1px solid var(--editorial-rule); border-radius: 0; background: transparent; }
.story-choice button { padding: 20px 0; font-weight: 650; }
.story-choice button[aria-expanded=true], .story-description { background: transparent; }
.story-choice button[aria-expanded=true] { color: var(--ink); }
.story-description { padding: 0 32px 24px 36px; }
.story-comic img { border: 0; border-radius: 6px; box-shadow: 0 12px 32px var(--sea-shadow); }
.story-hint { margin-top: 16px; }
.apps-strip { border-color: var(--editorial-rule); padding-block: 40px 32px; }
.apps-strip .apps-tile-icon { color: var(--ink); border: 2px solid currentColor; background: var(--panel); box-shadow: none; border-radius: 18px; }
.apps-strip h3 { font-weight: 650; }
.faq-list summary { padding-block: 20px; font-weight: 600; }
.faq-list details { border-color: var(--editorial-rule); }
.faq-list details:first-child { border-top: 1px solid var(--editorial-rule); }
.faq-list details p { line-height: 1.85; padding-bottom: 8px; }
.ocean-toggle { border-radius: 4px; background: color-mix(in srgb,var(--deep) 80%,transparent); }
@media(max-width:1050px) {
  .nav nav { gap: 20px; }
  .feature-options button { padding: 12px 8px; min-height: 70px; }
  .feature-options b { font-size: 18px; }
}
@media(max-width:760px) {
  .nav nav { gap: 16px; border-top: 1px solid var(--line); }
  .nav nav a { flex: 1 0 auto; padding: 6px 0; }
  .hero h1 { font-size: clamp(26px,6.6vw,36px); }
  .hero h1 em { margin-top: 10px; font-size: clamp(80px,22vw,112px); }
  .lead { font-size: 16px; }
  .section-head { margin-bottom: 24px; }
  .feature-options { border-top: 0; gap: 4px; }
  .feature-options button { padding: 10px 2px; min-height: 60px; }
  .feature-options b { font-size: 12px; }
  .category-prompt { margin-bottom: 12px; }
  .story-choice button { font-size: 15px; }
  .story-description { padding-left: 32px; padding-right: 0; }
  .apps-strip .apps-tile-icon { border-radius: 16px; }
}
@media(prefers-reduced-motion:reduce) { .nav nav a::after { transition: none; } }

/* Mobile feature browsing keeps the device and direct screen choices together. */
@media(max-width:760px) {
  .feature-section .category-prompt,
  .feature-detail > .kicker,
  .feature-detail > h3,
  .feature-detail > #feature-copy,
  .feature-detail > .preview-prompt,
  .feature-detail .screen-switch small { display: none; }
  .feature-section .feature-grid { gap: 8px; }
  .feature-section .feature-preview { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 0; }
  .feature-preview .phone { width: min(300px, max(120px, calc((100svh - var(--header-height) - 240px) * .46))); max-width: 100%; }
  .feature-preview .phone img { max-height: none; }
  .feature-detail { width: 100%; max-width: 440px; justify-self: center; }
  .feature-detail .screen-switch { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .feature-detail .screen-switch[data-count="1"] { grid-template-columns: minmax(0,1fr); }
  .feature-detail .screen-switch button { min-height: 44px; padding: 8px 10px; gap: 6px; }
  .feature-detail .screen-switch strong { font-size: 12px; line-height: 1.4; }
  .feature-detail .screen-switch .screen-arrow { grid-row: 1; }
  .feature-detail .screen-current { margin: 8px 0 0; font-size: 11px; }
}

/* Make switching stories and browsing the app list explicit. */
.story-choices { gap: 10px; border-top: 0; }
.story-choice { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.story-choice button { grid-template-columns: 24px minmax(0,1fr) auto; padding: 16px; }
.story-choice button[aria-expanded=true] { background: var(--sea-glass); box-shadow: inset 4px 0 var(--amber); }
.story-action { font-size: 12px; color: var(--amber); border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; white-space: nowrap; }
.story-choice button[aria-expanded=true] .story-action { background: var(--amber); color: var(--panel); border-color: var(--amber); }
.story-description { padding: 0 16px 16px 52px; background: var(--sea-glass); }
.apps-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.apps-navigation[hidden] { display: none; }
.apps-navigation p { color: var(--muted); margin: 0; font-size: 13px; }
.apps-scroll-buttons { display: flex; gap: 8px; }
.apps-scroll-buttons button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--amber); font-size: 22px; }
.apps-scroll-buttons button:disabled { opacity: .35; cursor: default; }
@media(max-width:760px) {
  .story-choice button { grid-template-columns: 20px minmax(0,1fr) auto; gap: 8px; padding: 12px; }
  .story-action { padding: 5px 6px; font-size: 11px; }
  .story-description { padding: 0 12px 16px 40px; }
  .apps-navigation p { font-size: 12px; }
}

/* Fit every mobile navigation label; spend the saved space on the preview. */
@media(max-width:760px) {
  .nav.shell { width: 100%; padding-inline: max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right)); }
  .nav nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; min-width: 0; overflow: visible; padding: 0; font-size: clamp(11px,3.2vw,13px); }
  .nav nav a { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 36px; padding: 4px 0; text-align: center; letter-spacing: -.035em; overflow-wrap: anywhere; }
  .feature-section { padding-block: 12px; }
  .feature-section .section-head { margin-bottom: 12px; gap: 4px; }
  .feature-section .section-head .kicker { margin-bottom: 4px; font-size: 11px; }
  .feature-section .section-head h2 { font-size: clamp(22px,5.7vw,28px); line-height: 1.25; }
  .feature-section .feature-options button { min-height: 44px; padding: 5px 2px; gap: 2px; }
  .feature-section .feature-options span { font-size: 10px; }
  .feature-section .feature-options b { font-size: 11px; }
}
