/* Soonrise website. Colours and type follow the app (design/DESIGN_HANDOFF.md) and the icon
   (design/brand/README.md). Fonts are served from this site, never from a third party. */

@font-face { font-family: "Young Serif"; src: url("assets/fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #fbf6f0;
  --surface: #fffdfa;
  --ink: #2e2433;
  --ink-2: #6b5d6e;
  --ink-3: #4f4252;
  --on-ink: #fff8f2;
  --hairline: #efe5dc;
  --apricot: #f8d6c2;
  --sun: #f2a27e;
  --reflection: #fdab80;
  --lilac: #ded8f4;
  --lilac-deep: #5b4a9a;
  --sea: #36233a;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --ui: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
/* The page starts with the hero's top colour, so Safari on iPhone shows it (not cream) behind the
   status bar; the body below keeps its cream ground. */
html { scroll-behavior: smooth; background: #5e469e; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header, over the dawn sky */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-ink); font: 400 22px/1 var(--display); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand.dark { color: var(--ink); }
.brand.dark img { width: 30px; height: 30px; border-radius: 8px; }
.header-nav { display: flex; gap: 28px; margin-left: auto; }
.header-nav a { color: rgba(255, 248, 242, 0.88); text-decoration: none; font-weight: 500; font-size: 15px; }
.header-nav a:hover { color: var(--on-ink); }

/* The call to action: a plain label before launch (a span, with nothing that looks pressable),
   the App Store button after it (an a). */
.store-cta { display: inline-block; color: var(--on-ink); font: 600 17px/1.2 var(--ui); text-align: center; text-decoration: none; }
.store-cta.small { font-size: 14px; white-space: nowrap; }
.store-cta.on-light { color: var(--ink); }
a.store-cta { padding: 15px 26px; border-radius: 999px; border: 1.5px solid var(--sun); background: var(--sun); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }
a.store-cta.small { padding: 10px 16px; }
a.store-cta.on-light { box-shadow: 0 10px 24px rgba(46, 36, 51, 0.16); }
a.store-cta:hover { background: #f5b08f; border-color: #f5b08f; }

/* Hero: the icon's sunrise, with the app rising like the sun */
.hero { position: relative; overflow: hidden; color: var(--on-ink); background: linear-gradient(180deg, #5e469e 0%, #6b4aa5 30%, #7d50a4 52%, #9a5aa0 67%, #c76a96 79%, #ec8586 89%, #fcad91 96%, #fdc6a8 100%); }
.site-header a:focus-visible, .hero a:focus-visible, .closing a:focus-visible { outline-color: var(--on-ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: end; padding-top: 112px; position: relative; z-index: 1; }
.hero-copy { padding-bottom: 72px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(46, 36, 51, 0.3); }
.hero h1 { font: 400 clamp(38px, 5.4vw, 58px)/1.06 var(--display); margin: 20px 0 18px; max-width: 20ch; letter-spacing: -0.01em; text-wrap: balance; }
.hero .lead { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; max-width: 32em; margin: 0 0 30px; color: var(--on-ink); text-wrap: pretty; }
.hero-cta { display: inline-block; max-width: 460px; padding: 20px; border-radius: 22px; background: rgba(46, 36, 51, 0.34); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fine { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 248, 242, 0.92); }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.sun { position: absolute; left: 50%; bottom: 0; width: min(460px, 100%); aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: #fdf1e7; box-shadow: 0 0 110px 40px rgba(251, 185, 144, 0.7); }
.device-hero { position: relative; width: min(300px, 70vw); transform: translateY(140px); margin-top: -140px; }
.hero-sea { background: var(--sea); padding: 172px 0 36px; position: relative; }
.sea-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; }
.sea-grid .reflections { grid-column: 2; }
.reflections { display: grid; justify-items: center; gap: 14px; }
.reflections span { display: block; height: 12px; border-radius: 999px; background: var(--reflection); opacity: 0.9; }
.reflections span:nth-child(1) { width: min(360px, 74vw); }
.reflections span:nth-child(2) { width: min(278px, 52vw); }
.reflections span:nth-child(3) { width: min(170px, 32vw); }

/* Phone frames around real app screenshots */
.device { margin: 0; position: relative; background: var(--ink); border-radius: 46px; padding: 9px; box-shadow: 0 30px 60px rgba(46, 36, 51, 0.22), 0 4px 12px rgba(46, 36, 51, 0.12); }
.device img { width: 100%; border-radius: 38px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.device-sm { border-radius: 36px; padding: 7px; }
.device-sm img { border-radius: 30px; }

/* At a glance */
.facts { background: var(--sea); color: var(--on-ink); padding: 0 0 56px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.facts li { text-align: center; padding: 18px 10px; border-top: 1px solid rgba(255, 248, 242, 0.16); }
.facts strong { display: block; font: 400 22px/1.2 var(--display); }
.facts span { color: rgba(255, 248, 242, 0.72); font-size: 15px; }

/* Sections on the cream ground */
.section { padding: 104px 0; }
.section + .section { padding-top: 0; }
.section.tinted { background: #f5ece3; padding: 96px 0; margin-bottom: 104px; }
.section.tinted + .section { padding-top: 0; }
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac-deep); margin: 0 0 10px; }
.section h2 { font: 400 clamp(30px, 4vw, 42px)/1.14 var(--display); margin: 0 0 14px; text-wrap: balance; }
.section-head p { margin: 0; color: var(--ink-3); font-size: 18px; text-wrap: pretty; }
.section-head a { color: var(--lilac-deep); }

.steps { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; counter-reset: step; }
.step-card { counter-increment: step; text-align: center; }
.step-visual { display: grid; place-items: center; min-height: 624px; margin: 0 0 28px; }
.step-card .device, .words, .board-shot { width: min(250px, 80%); margin: 0; }
.board-shot { border-radius: 18px; }
/* What a person writes, what the app writes from it, and the picture it paints: a real example. */
.words { background: var(--surface); border: 1px solid var(--hairline); border-radius: 28px; padding: 16px 14px 14px; text-align: left; box-shadow: 0 30px 60px rgba(46, 36, 51, 0.12), 0 4px 12px rgba(46, 36, 51, 0.06); }
.words figcaption { display: grid; gap: 6px; }
.words-label { font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac-deep); }
.words-label:not(:first-child) { margin-top: 8px; }
.words-answer { background: var(--lilac); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.words-statement { font: 400 17px/1.3 var(--display); color: var(--ink); }
.words img { margin-top: 8px; width: 100%; border-radius: 14px; }
.step-card h3 { font: 600 20px/1.3 var(--ui); margin: 0 0 8px; }
.step-card h3::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 999px; background: var(--apricot); font-size: 15px; vertical-align: 2px; }
.step-card p { margin: 0 auto; color: var(--ink-3); font-size: 16px; max-width: 30ch; }

.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 28px 26px; }
.card h3 { font: 600 19px/1.3 var(--ui); margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-3); font-size: 16px; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--apricot); margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split-visual { display: flex; justify-content: center; }
.split-visual > .device { width: min(310px, 80%); }
.split-visual.pair { position: relative; min-height: 600px; }
/* The two phones only touch at their frames, so the back one's question stays readable. */
.split-visual.pair .device { position: absolute; width: min(262px, 51%); }
.split-visual.pair .device:first-child { left: 0; top: 0; z-index: 1; }
.split-visual.pair .device-back { right: 0; top: 56px; transform: rotate(3deg); }
.list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-3); }
.list li::before { content: ""; width: 12px; height: 12px; margin-top: 8px; border-radius: 999px; background: var(--sun); justify-self: center; }
.list strong { color: var(--ink); font-weight: 600; }
.list.compact { gap: 10px; margin: 0; font-size: 16px; }

/* Real pictures as prints, the way the Scrapbook look frames them */
.prints { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 18px 14px; align-items: center; width: min(430px, 100%); }
.print { margin: 0; background: #fffdf8; padding: 8px 8px 0; border-radius: 3px; box-shadow: 0 16px 34px rgba(46, 36, 51, 0.2), 0 2px 6px rgba(46, 36, 51, 0.12); }
.print img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.print figcaption { padding: 9px 4px 11px; font-size: 14px; line-height: 1.35; color: var(--ink-3); text-align: center; }
.print-a { grid-row: span 2; transform: rotate(-2.5deg); }
.print-b { transform: rotate(2deg); width: 88%; }
.print-c { transform: rotate(-1.5deg); width: 88%; justify-self: end; }
.styles-block { margin-top: 72px; }
.styles-block h3 { font: 600 20px/1.3 var(--ui); margin: 0 0 20px; text-align: center; }
.styles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.styles figure { margin: 0; }
.styles img { width: 100%; border-radius: 14px; }
.styles figcaption { margin-top: 8px; text-align: center; font-weight: 600; font-size: 15px; }
.illustrative { margin: 22px 0 0; font-size: 14px; color: var(--ink-2); }
.illustrative.center { text-align: center; max-width: 62ch; margin-left: auto; margin-right: auto; }

/* The board as a computer wallpaper, with the phone lock screen beside it */
.wall { position: relative; max-width: 900px; margin: 0 auto 64px; }
.screen { margin: 0; width: 84%; border: 10px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px rgba(46, 36, 51, 0.22), 0 4px 12px rgba(46, 36, 51, 0.12); }
.screen img { width: 100%; }
.wall .device-mini { position: absolute; right: 0; bottom: -36px; width: 21%; border-radius: 30px; padding: 6px; }
.wall .device-mini img { border-radius: 24px; }

.why { background: var(--lilac); border-radius: 28px; padding: 52px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.why h2 { margin-bottom: 12px; }
.why p { margin: 0 0 12px; color: var(--ink-3); }
.sources { background: rgba(255, 253, 250, 0.6); border-radius: 20px; padding: 24px; font-size: 15px; }
.why .sources-title { font-weight: 700; color: var(--ink); }
.sources ul { margin: 0 0 14px; padding-left: 18px; color: var(--ink-3); display: grid; gap: 8px; }
.sources a { color: var(--lilac-deep); font-weight: 600; }

.features { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; max-width: 860px; margin: 0 auto; }
.included { grid-column: 2; grid-row: 1 / span 2; }
.plan { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 30px 26px; display: flex; flex-direction: column; justify-content: center; }
.plan.featured { border: 2px solid var(--ink); box-shadow: 0 18px 40px rgba(46, 36, 51, 0.1); }
.plan h3 { font: 400 30px/1.2 var(--display); margin: 0 0 10px; }
.plan-note { margin: 0; color: var(--ink-3); font-size: 16px; }
.included { background: var(--apricot); border-radius: 24px; padding: 30px 26px; }
.included-title { font-weight: 700; margin: 0 0 14px; }
.included .list li { color: var(--ink); }
.included .list li::before { background: var(--ink); width: 8px; height: 8px; margin-top: 9px; }
.plans-fine { text-align: center; color: var(--ink-2); font-size: 14px; margin: 24px auto 0; max-width: 60ch; }
.plans-cta { text-align: center; margin: 28px 0 0; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--ui); color: var(--ink-2); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-3); max-width: 60ch; }
.faq summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.closing { text-align: center; background: var(--sea); color: var(--on-ink); border-radius: 32px; padding: 64px 24px; background-image: radial-gradient(ellipse 60% 70% at 50% 120%, rgba(253, 171, 128, 0.35), transparent 70%); }
.closing h2 { color: var(--on-ink); max-width: 18ch; margin-left: auto; margin-right: auto; }
.closing-icon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
.closing .store-cta { margin-top: 12px; }

.site-footer { padding: 24px 0 48px; color: var(--ink-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--hairline); }
.footer-brand p { margin: 14px 0 0; max-width: 34ch; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.footer-title { font-weight: 700; color: var(--ink); margin: 0 0 4px; font-size: 14px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: 14px; }

@media (max-width: 960px) {
  .header-nav { display: none; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 112px; text-align: center; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-copy { padding-bottom: 8px; }
  .hero-cta { text-align: center; }
  .hero-visual { min-height: 0; padding-top: 24px; }
  .device-hero { width: min(260px, 66vw); transform: translateY(120px); margin-top: -120px; }
  .hero-sea { padding-top: 150px; }
  .sea-grid { grid-template-columns: 1fr; }
  .sea-grid .reflections { grid-column: 1; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .steps { gap: 56px; }
  .site-footer nav { gap: 0; }
  .site-footer nav a { padding: 8px 0; }
  .footer-title { margin-bottom: 6px; }
  .step-visual { min-height: 0; }
  .included { grid-column: auto; grid-row: auto; }
  .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .styles-block { margin-top: 56px; }
  .wall { margin-bottom: 44px; }
  .screen { width: 100%; border-width: 7px; border-radius: 14px; }
  .wall .device-mini { position: relative; right: auto; bottom: auto; width: min(230px, 62vw); margin: 28px auto 0; border-radius: 36px; padding: 7px; }
  .wall .device-mini img { border-radius: 30px; }
  .split, .why, .faq-wrap { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-visual { order: -1; }
  /* Your board: the heading comes first, then the three prints, then the list. */
  #features > .split { gap: 28px; }
  #features > .split > div:last-child { display: contents; }
  #features .split-visual { order: 1; }
  #features .list { order: 2; }
  #features .illustrative { order: 3; }
  .split-visual.pair { min-height: 0; height: min(560px, 120vw); width: 100%; }
  .why { padding: 34px 24px; }
  .section { padding: 72px 0; }
  .section.tinted { padding: 72px 0; margin-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Tablets held upright: the three steps stay side by side, their headings on one line. */
@media (min-width: 600px) and (max-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 20px; }
  .step-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .step-visual { margin-bottom: 24px; }
  .step-card .device, .words, .board-shot { width: min(250px, 100%); }
}
@media (max-width: 520px) {
  .store-cta { font-size: 16px; }
  a.store-cta { padding: 14px 20px; }
  .store-cta.small { display: none; }
  .site-header .wrap { height: 64px; }
  .hero-grid { padding-top: 84px; gap: 16px; }
  .hero h1 { margin: 14px 0 14px; }
  .hero .lead { margin-bottom: 20px; }
  .hero-cta { padding: 16px 18px; }
  .hero-visual { padding-top: 16px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(32px, 10vw, 38px); }
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}
