/* 42degrees: the app's own palette and heading face (see the app's
   lib/src/theme.dart), on a page that loads nothing from anywhere else. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/static/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/static/fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ivory: #F9FBF2;
  --surface: #EDEFE4;
  --graphite: #34312D;
  --night: #1B1A17;
  --muted: #6B6862;
  --periwinkle: #9D8DF1;
  --ink: #5E4CCB;
  --tan: #C9B08C;
  --sent: #2E7D5B;
  --line: #DDDFD3;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Dark behind the page, so scrolling past either end shows the header's or
   the footer's colour rather than a strip of ivory. */
html { -webkit-text-size-adjust: 100%; background: var(--night); }
/* A short page (the imprint) still puts the footer at the bottom. */
body {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  margin: 0;
  background: var(--ivory);
  color: var(--graphite);
  font: 17px/1.55 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--graphite); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(44px, 7vw, 76px); }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: 28px; }
p { margin: 0 0 1em; }
main { flex: 1 0 auto; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--night); color: var(--ivory); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; z-index: 10; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 14px;
}
.eyebrow.ink { color: var(--ink); }

/* --- header and footer ----------------------------------------------------- */

.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px max(20px, (100% - var(--wrap)) / 2);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ivory); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 28px;
}
.brand:hover { color: var(--ivory); }
.mark { width: 20px; height: 32px; }
.mark g { fill: currentColor; stroke: currentColor; stroke-width: 32; stroke-linejoin: round; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--ivory); text-decoration: none; opacity: 0.85; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; text-decoration: underline; }

/* Text pages have no dark hero behind the header, so it gets its own. */
body:has(main > .text) .top { background: var(--night); position: static; }

.bottom { background: var(--night); color: #B7B3AB; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-grid p { max-width: 360px; margin-top: 10px; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: flex-start; }
.bottom a { color: var(--ivory); }
.brand-small { font-size: 24px; }
.legal { font-size: 14px; margin-top: 30px; }

/* --- phones ---------------------------------------------------------------- */

.phone {
  background: #0E0D0C;
  padding: 9px;
  border-radius: 46px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  width: 100%;
}
.phone img { border-radius: 38px; width: 100%; }
.phone-small { max-width: 250px; border-radius: 40px; }
.phone-small img { border-radius: 32px; }

/* Hold rings, as the app circles them: behind the phone, half hidden. */
.ring {
  position: absolute; border-radius: 50%; border: 7px solid;
  width: 90px; height: 90px; z-index: 0;
}
.ring::after {
  content: ""; position: absolute; inset: 29%;
  background: #2A2724; border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
}
.ring-red { border-color: #E5484D; top: 4%; left: 2%; }
.ring-yellow { border-color: #F2C230; top: 22%; right: 0; width: 80px; height: 80px; }
.ring-blue { border-color: #4A8FE0; bottom: 18%; right: 4%; }
.ring-green { border-color: #2E9E6B; bottom: 6%; left: 0; width: 84px; height: 84px; }

/* --- store links ----------------------------------------------------------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 170px; min-height: 56px; padding: 8px 20px;
  border-radius: 12px; background: var(--ivory); color: var(--night);
  text-decoration: none; font-weight: 600; font-size: 20px; line-height: 1.1;
}
.store small { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
.store:hover { background: var(--periwinkle); color: var(--night); }
.store-soon { background: transparent; color: var(--ivory); border: 1.5px solid rgba(249, 251, 242, 0.35); }

/* --- sections -------------------------------------------------------------- */

section { padding: clamp(64px, 9vw, 120px) 0; }

.hero { background: var(--night); color: var(--ivory); padding-top: 140px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.lede { font-size: 20px; max-width: 520px; opacity: 0.88; }
.hero-phone { position: relative; display: flex; justify-content: center; padding: 20px 40px; }
.hero-phone .phone { position: relative; z-index: 1; }

.steps .step-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px;
}
.step { margin: 0; }
.step .phone { margin: 0 auto 28px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.split .phone { justify-self: center; }
.split-flip { grid-template-columns: 1.2fr 1fr; }

.friends { background: var(--periwinkle); color: var(--night); }
.friends .eyebrow { color: var(--night); }
.ticks, .facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 19px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 10px;
  border-left: 3px solid var(--night); border-bottom: 3px solid var(--night); transform: rotate(-45deg);
}

.archive { background: var(--surface); }
.facts { margin-top: 28px; font-size: 17px; }
.facts li { padding: 16px 18px; background: var(--ivory); border-radius: 14px; }

.free { background: var(--graphite); color: var(--ivory); }
.free-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pro { background: var(--ivory); color: var(--graphite); border-radius: 22px; padding: 32px; }
.button-link {
  display: inline-block; background: var(--night); color: var(--ivory);
  padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.button-link:hover { background: var(--ink); color: var(--ivory); }

.cta { background: var(--night); color: var(--ivory); text-align: center; }
.cta .stores { justify-content: center; }

/* --- text pages ------------------------------------------------------------ */

.text { max-width: 760px; padding: 48px 0 80px; }
.text h1 { font-size: clamp(40px, 6vw, 60px); }
.text h2 { font-size: 34px; margin-top: 1.6em; }
.text h3 { font-size: 24px; margin-top: 1.4em; }
.text hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.text table { border-collapse: collapse; width: 100%; font-size: 15px; }
.text th, .text td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.text code { background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.notfound { padding-top: 40px; }

/* --- small screens --------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-grid, .split, .split-flip, .free-grid { grid-template-columns: 1fr; }
  .split-flip > .phone { order: -1; }
  .steps .step-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 110px; }
  .top nav { gap: 16px; font-size: 15px; }
  .brand { font-size: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .store, .button-link { transition: background 0.15s; }
}
