/* Something Blue companion site. Calm direction (approved Oct 14, 2026),
   landing direction A, app first (picked Oct 18, 2026).
   Tokens match the app's calm palette. Reference the custom properties
   below; do not hardcode new hex values in markup. */

/* ---------- Fonts ----------
   Self-hosted, subset to Latin from the @expo-google-fonts packages in the
   app repo (both SIL OFL). Abril Fatface for titles, Nunito Sans for body. */
@font-face {
  font-family: "Abril Fatface";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/abrilfatface-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunitosans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/nunitosans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunitosans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunitosans-700.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --paper: #fffdf8;
  --band: #f5f1ea;
  --card: #ffffff;
  --line: #e6e0d4;
  --inset: #efebe3;
  --ink: #1a1814;
  --ink-2: #4f493e;
  --acc: #556f7e;
  --acc-dark: #465d6a;
  --acc-wash: #e6edf1;
  --shadow: 0 1px 2px rgba(26, 24, 20, 0.05), 0 2px 8px rgba(26, 24, 20, 0.05);
  --radius-card: 14px;
  --radius-btn: 10px;
  --display: "Abril Fatface", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
}
a {
  color: inherit;
}
ul,
ol {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.2;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .wrap {
    padding: 0 32px;
  }
}
.eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 19px;
}
.brand svg {
  color: var(--acc);
  flex: none;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-links .nav-web {
  color: var(--acc);
  font-weight: 700;
}
/* Phone menu: a dropdown under the header, only as tall as its links (R-5). */
.menu > summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: var(--radius-btn);
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu .icon-close {
  display: none;
}
.menu[open] .icon-open {
  display: none;
}
.menu[open] .icon-close {
  display: block;
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(26, 24, 20, 0.08);
  padding: 6px 16px 10px;
}
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--inset);
}
.menu-panel a:last-child {
  border-bottom: 0;
}
.menu-panel .nav-web {
  color: var(--acc);
  font-weight: 700;
}
@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .menu {
    display: none;
  }
}

/* ---------- App Store badge and web link ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.badge {
  display: inline-block;
  flex: none;
  border-radius: 9px;
}
.badge img {
  height: 48px;
  width: auto;
}
.weblink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
.weblink svg {
  flex: none;
}
.note {
  font-size: 15px;
  color: var(--ink-2);
  margin-top: 10px;
}

/* ---------- Phone frames ---------- */
.phone {
  background: var(--ink);
  border-radius: 36px;
  padding: 7px;
  box-shadow: 0 18px 36px rgba(26, 24, 20, 0.16), 0 4px 10px rgba(26, 24, 20, 0.08);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 29px;
  background: var(--paper);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--band);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 32px;
  padding-top: 32px;
}
.hero h1 {
  font-size: 28px;
  line-height: 1.15;
  margin: 10px 0 12px;
  max-width: 16ch;
}
.hero .lede {
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 20px;
}
.shots {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 400px;
  margin: 0 auto;
}
.shots .phone {
  position: absolute;
}
.shots .front {
  left: 0;
  top: 0;
  width: 60%;
  z-index: 2;
}
.shots .back {
  right: 0;
  top: 56px;
  width: 55%;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    padding-top: 56px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero .lede {
    font-size: 19px;
  }
  .shots {
    max-width: 400px;
    height: 480px;
    align-self: end;
  }
  .shots .back {
    top: 64px;
  }
}

/* ---------- Sections ---------- */
.sec {
  padding: 48px 0;
}
.sec h2 {
  font-size: 26px;
  margin: 8px 0 10px;
}
.sec .intro {
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: 24px;
}
.alt {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .sec {
    padding: 72px 0;
  }
  .sec h2 {
    font-size: 34px;
  }
}

/* Features: a 2/3 to 1/3 split with the Olive card */
.split {
  display: grid;
  gap: 32px;
}
.feat {
  display: grid;
  gap: 8px;
}
.feat li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
}
.feat .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  background: var(--acc-wash);
  color: var(--acc);
  display: grid;
  place-items: center;
  flex: none;
}
.feat h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 2px;
}
.feat p {
  color: var(--ink-2);
}
.olive {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.olive blockquote {
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.3;
}
.olive p {
  color: var(--ink-2);
  font-weight: 600;
}
@media (min-width: 768px) {
  .split {
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .feat {
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
  }
  .olive {
    margin-top: 132px;
  }
}

/* Blog cards. Set n1, n2 or n3 on .blog to match the number of posts. */
.blog-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.blog-top a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--acc);
  white-space: nowrap;
}
.blog {
  display: grid;
  gap: 14px;
}
.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  text-decoration: none;
}
.post .thumb {
  width: 96px;
  flex: none;
  background: var(--inset);
  border-right: 1px solid var(--line);
  color: var(--acc);
  display: grid;
  place-items: center;
}
.post .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post .body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.post .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.post h3 {
  font-size: 18px;
  line-height: 1.25;
}
.post p {
  font-size: 15px;
  color: var(--ink-2);
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--inset);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (min-width: 900px) {
  .post {
    flex-direction: column;
  }
  .post .thumb {
    width: auto;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .post .body {
    padding: 16px 18px 20px;
  }
  .post h3 {
    font-size: 20px;
  }
  .blog.n2 {
    grid-template-columns: 1fr 1fr;
  }
  .blog.n3 {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .blog.n3 .post:first-child h3 {
    font-size: 23px;
  }
  .blog.n1 .post {
    flex-direction: row;
  }
  .blog.n1 .post .thumb {
    width: 46%;
    aspect-ratio: auto;
    min-height: 260px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .blog.n1 .post .body {
    justify-content: center;
    padding: 28px 32px;
  }
  .blog.n1 .post h3 {
    font-size: 26px;
  }
}

/* Pricing */
.price {
  display: grid;
  gap: 14px;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 22px;
}
.plan h3 {
  font-size: 22px;
}
.plan .amount {
  font-weight: 700;
  margin: 2px 0 12px;
}
.plan li {
  position: relative;
  padding: 5px 0 5px 22px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
}
@media (min-width: 768px) {
  .price {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
  }
}

/* Questions: closed toggles split by hairlines, two columns past four (G-5) */
.faq {
  display: grid;
  column-gap: 48px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  font-weight: 700;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  flex: none;
  transition: transform 0.15s ease;
}
.faq details[open] summary svg {
  transform: rotate(180deg);
}
.faq > div > details:last-child,
.faq > details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq details p {
  padding: 0 0 16px;
  color: var(--ink-2);
  max-width: 68ch;
}
.faq a {
  color: var(--acc);
  font-weight: 600;
}
@media (min-width: 768px) {
  .faq.two {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* The one brand band on the page */
.band {
  background: var(--acc);
  color: #fff;
  padding: 44px 0;
}
.band h2 {
  font-size: 28px;
  margin-bottom: 6px;
}
.band p {
  margin-bottom: 20px;
}
.band .weblink,
.band .note {
  color: #fff;
}
.band .badge:focus-visible,
.band .weblink:focus-visible {
  outline-color: #fff;
}
@media (min-width: 768px) {
  .band .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }
  .band h2 {
    font-size: 34px;
  }
  .band p {
    margin-bottom: 0;
  }
}

/* ---------- Footer (all pages) ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 24px;
  font-size: 15px;
  color: var(--ink-2);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer .brand {
  color: var(--ink);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
@media (min-width: 900px) {
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- Legal / prose pages ---------- */
.legal {
  padding: 40px 0 72px;
}
.legal .prose {
  max-width: 720px;
  margin: 0 auto;
}
.legal h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 10px;
  scroll-margin-top: 16px;
}
.legal h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  margin-top: 26px;
  margin-bottom: 6px;
}
.legal p,
.legal li {
  color: var(--ink-2);
}
.legal p {
  margin-bottom: 1em;
}
.legal a {
  color: var(--acc);
  font-weight: 600;
}
.legal .prose ul,
.legal .prose ol {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 1em;
}
.legal .prose ol {
  list-style: decimal;
}
.legal li {
  margin-bottom: 8px;
  max-width: 65ch;
}
.legal strong {
  color: var(--ink);
}
.legal .toc {
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.legal .toc h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
}
.legal .toc ol {
  margin: 0;
  columns: 2;
  column-gap: 28px;
}
@media (max-width: 560px) {
  .legal .toc ol {
    columns: 1;
  }
}
.legal .toc li {
  margin: 0;
}
.legal .toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.legal .callout {
  background: var(--acc-wash);
  border-left: 4px solid var(--acc);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 24px;
}
.legal .callout p {
  margin: 0;
  color: var(--ink);
}
.legal .contact-box {
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-top: 24px;
}
.legal .contact-box p {
  margin: 0 0 4px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.5em;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.data-table th {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-bottom: 12px;
  font-weight: 600;
  text-decoration: none;
}
.legal .back-home {
  color: var(--ink);
}

/* Support cards */
.support-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.card h3,
.legal .card-title {
  margin-top: 0;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
}
.card p {
  margin: 0;
}
@media (min-width: 641px) {
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}
