/* So It Is website. Brand: Daydream × Dawn (see the app repo's docs/knowledge-base.md). */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-Italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #9CC5F2;
  --sky-mist: #C7D9F7;
  --rose: #F3C9DD;
  --apricot: #F9DCCB;
  --page: #F7F8FC;
  --midnight: #1E2346;
  --midnight-soft: #434A72;
  --muted: #5A6182;
  --line: #E3E7F2;
  --line-soft: #EEF1F7;
  --gradient: linear-gradient(170deg, #9CC5F2 0%, #C7D9F7 45%, #F3C9DD 90%, #F9DCCB 100%);
  --card-shadow: 0 1px 2px rgba(30, 35, 70, 0.04), 0 10px 30px rgba(30, 35, 70, 0.06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--midnight);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--midnight); }
a:hover { color: var(--midnight-soft); }
a:focus-visible { outline: 2px solid var(--midnight); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
img { max-width: 100%; }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--midnight); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-decoration: none; z-index: 10;
}
.skip:focus { top: 12px; color: #fff; }

.nowrap { white-space: nowrap; }

/* Header */
.site-header {
  max-width: 1160px; margin: 0 auto; padding: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--midnight); }
.logo:hover { color: var(--midnight); }
.logo svg { display: block; }
.wordmark {
  font-family: var(--serif); font-style: italic; font-weight: 380;
  font-size: 26px; letter-spacing: -0.5px; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.site-nav a { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--midnight-soft); }
.site-nav a[aria-current="page"] { color: var(--midnight); }
.site-nav a.pill, .pill {
  font-size: 15px; font-weight: 700; text-decoration: none; color: #fff;
  background: var(--midnight); padding: 11px 20px; border-radius: 999px;
}
.site-nav a.pill:hover, .pill:hover { color: #fff; background: #2B315C; }

@media (max-width: 480px) {
  .site-header { padding: 20px 16px; }
  .site-nav { gap: 18px; }
  .wordmark { font-size: 24px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .inner {
  max-width: 1160px; margin: 0 auto; padding: 32px 24px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.site-footer .brand { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.site-footer .brand .wordmark { font-size: 20px; font-weight: 400; letter-spacing: 0; }
.site-footer .brand small { font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; white-space: nowrap; font-size: 14px; font-weight: 600; }
.site-footer nav a { text-decoration: none; color: var(--midnight-soft); }
.site-footer nav a[aria-current="page"] { color: var(--midnight); }
@media (max-width: 480px) { .site-footer .inner { padding: 28px 16px 36px; } }

/* Shared section rhythm */
.section { max-width: 1160px; margin: 0 auto; padding: clamp(72px, 9vw, 120px) 24px 0; }
@media (max-width: 480px) { .section { padding-left: 16px; padding-right: 16px; } }
.section-head {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; max-width: 640px; margin: 0 auto;
}
.section-head h2 {
  margin: 0; font-family: var(--serif); font-weight: 360;
  font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: -1px;
}
.section-head p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--midnight-soft); }

.eyebrow {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--midnight-soft); white-space: nowrap;
}

/* Hero */
.hero { max-width: 1160px; margin: 0 auto; padding: 24px 24px 0; }
@media (max-width: 480px) { .hero { padding: 8px 16px 0; } }
.hero-sky {
  background: #C9C6F2 url("/assets/img/hero-sky.jpg") right 85% / cover no-repeat;
  border-radius: 40px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px) 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; overflow: hidden;
}
@media (max-width: 480px) { .hero-sky { border-radius: 32px; gap: 40px; } }
.hero-copy {
  flex: 1 1 420px; min-width: 0; padding-bottom: clamp(40px, 6vw, 88px);
  display: flex; flex-direction: column; gap: 24px;
}
@media (max-width: 760px) { .hero-copy { padding-bottom: 0; } }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 340;
  font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -2px;
}
.hero h1 em { font-weight: 300; }
.hero .lede { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--midnight-soft); max-width: 470px; }
.download { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.download .note { font-size: 14px; font-weight: 500; color: var(--midnight-soft); white-space: nowrap; }
.badge-link { display: inline-flex; line-height: 0; border-radius: 10px; }
.badge-link img { display: block; height: 54px; width: auto; }
.phone-wrap { flex: 0 1 340px; display: flex; justify-content: center; margin: 0 auto; min-width: 0; }
.phone {
  width: 300px; max-width: 100%; aspect-ratio: 1 / 2;
  border-radius: 52px 52px 0 0; background: var(--midnight); padding: 11px 11px 0;
  box-shadow: 0 40px 80px rgba(30, 35, 70, 0.25);
}
.phone img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 42px 42px 0 0;
}

/* Widget samples */
.samples { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.widgets { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.widget {
  position: relative; height: 158px; border-radius: 28px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(30, 35, 70, 0.16); flex: none;
}
.widget.small { width: 158px; }
.widget.medium { width: 338px; max-width: 100%; }
.widget img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.widget .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.18); }
.widget p {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: var(--serif); line-height: 1.2;
}
.widget.medium p { padding: 20px 28px; font-size: 25px; }
.widget.small p { padding: 18px; font-size: 19px; }
.widget.gradient { background: var(--gradient); }
.widget .caps {
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 1.6px;
  line-height: 1.5; text-transform: uppercase;
}
@media (max-width: 400px) {
  .widgets { gap: 16px; }
  .widget.small { width: calc(50% - 8px); height: auto; aspect-ratio: 1; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: #fff; border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--card-shadow);
}
.card .icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.card h3 { margin: 0; font-size: 19px; font-weight: 700; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Pricing */
.pricing { display: flex; flex-direction: column; align-items: center; gap: 40px; scroll-margin-top: 24px; }
.plans { width: 100%; max-width: 880px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
@media (max-width: 360px) { .plans { grid-template-columns: 1fr; } }
.plan { border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 480px) { .plan { padding: 28px; } }
.plan.free { background: #fff; box-shadow: var(--card-shadow); }
.plan.pro { background: var(--midnight); color: #fff; box-shadow: 0 24px 50px rgba(30, 35, 70, 0.22); }
.plan .head { display: flex; flex-direction: column; gap: 6px; }
.plan h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.plan.pro h3 { color: var(--sky-mist); }
.plan .price { margin: 0; font-family: var(--serif); font-size: 44px; font-weight: 380; letter-spacing: -1px; white-space: nowrap; }
.plan .price span { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--sky-mist); }
.plan .alt { margin: 0; font-size: 15px; font-weight: 500; color: var(--sky-mist); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--midnight-soft); }
.plan.pro ul { color: #E6ECFA; }
.plan li { display: flex; gap: 12px; }
.plan li svg { flex: none; margin-top: 1px; }
.price-note { margin: -12px 0 0; max-width: 560px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Closing */
.closing { padding-bottom: clamp(72px, 9vw, 120px); }
.closing .inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.closing h2 {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 320;
  font-size: clamp(40px, 5vw, 60px); line-height: 1.05; letter-spacing: -1.5px;
}

/* Text pages (support, privacy, terms) */
.doc {
  max-width: 720px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 24px clamp(72px, 9vw, 112px);
  display: flex; flex-direction: column; gap: 40px;
  font-size: 17px; line-height: 1.7; color: var(--midnight-soft);
}
.doc.wide { max-width: 760px; gap: 32px; }
@media (max-width: 480px) { .doc { padding-left: 16px; padding-right: 16px; } }
.doc .intro { display: flex; flex-direction: column; gap: 16px; }
.doc h1 {
  margin: 0; font-family: var(--serif); font-weight: 340;
  font-size: clamp(42px, 5vw, 60px); line-height: 1.05; letter-spacing: -1.5px; color: var(--midnight);
}
.doc .lead { margin: 0; font-size: 19px; line-height: 1.6; }
.doc .updated { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.doc section { display: flex; flex-direction: column; gap: 14px; }
.doc h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--midnight); }
.doc p { margin: 0; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc strong { color: var(--midnight); }
.doc .boxed {
  background: #fff; border-radius: 24px; padding: 28px 32px; box-shadow: var(--card-shadow);
}
.doc .boxed h2.small { font-family: var(--sans); font-size: 20px; font-weight: 700; }
.doc .boxed ul { gap: 8px; }
@media (max-width: 480px) { .doc .boxed { padding: 24px; } }

/* Support */
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  text-decoration: none; background: var(--gradient); border-radius: 24px; padding: 26px 30px; color: var(--midnight);
}
.contact-card:hover { color: var(--midnight); }
.contact-card .label { display: flex; flex-direction: column; gap: 2px; }
.contact-card .kicker { font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--midnight-soft); white-space: nowrap; }
.contact-card .address { font-family: var(--serif); font-size: 26px; white-space: nowrap; }
.contact-card .pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; white-space: nowrap; }
@media (max-width: 480px) { .contact-card { padding: 22px 24px; } .contact-card .address { font-size: 22px; } }
.faq { background: #fff; border-radius: 24px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; }
.faq section { padding: 28px 32px; gap: 10px; border-bottom: 1px solid var(--line-soft); }
.faq section:last-child { border-bottom: 0; }
.faq h2 { font-family: var(--sans); font-size: 19px; font-weight: 700; line-height: 1.4; }
@media (max-width: 480px) { .faq section { padding: 24px; } }

/* 404 */
.not-found { text-align: center; align-items: center; }

/* Emoji stickers on the sample widgets */
.widget .sticker {
  position: absolute; line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  filter: drop-shadow(0 2px 3px rgba(30, 35, 70, 0.18));
}

/* App screenshots */
.showcase { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 5vw, 64px); }
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; width: 280px; max-width: 100%; }
.device {
  width: 100%; aspect-ratio: 600 / 1304; background: var(--midnight); padding: 9px; border-radius: 46px;
  box-shadow: 0 30px 60px rgba(30, 35, 70, 0.2);
}
.device img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.shot figcaption { font-size: 15px; line-height: 1.5; color: var(--muted); text-align: center; max-width: 240px; }
.not-found .intro { align-items: center; }
.not-found .pill { display: inline-block; text-decoration: none; }
