/*
 * getturnover.app: marketing site styles.
 * Tokens are copied from the app (v2/app/app.css) so the site and the app look like one product.
 * No web fonts, no framework: system font stack, light and dark from prefers-color-scheme.
 */
:root {
  color-scheme: light dark;
  --tv-bg: #faf7f2;
  --tv-surface: #ffffff;
  --tv-surface-2: #f2ede5;
  --tv-ink: #1f1a15;
  --tv-muted: #5e554b;
  --tv-line: #e3dbcf;
  --tv-line-strong: #c9bfb1;
  --tv-primary: #1d5a48;
  --tv-primary-hover: #174a3b;
  --tv-on-primary: #ffffff;
  --tv-primary-soft: #e3efe9;
  --tv-focus: #2f7d65;
  --tv-warn: #8a4b06;
  --tv-warn-soft: #fbeedb;
  --tv-shadow: 0 1px 2px rgb(31 26 21 / 0.06), 0 4px 16px rgb(31 26 21 / 0.06);
  --tv-shadow-lg: 0 2px 6px rgb(31 26 21 / 0.08), 0 24px 60px -12px rgb(31 26 21 / 0.28);
  --tv-bezel: #1f1a15;
  --tv-band: #1d5a48;
  --tv-on-band: #ffffff;
  --tv-on-band-muted: #cfe5dc;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 1rem;
  --radius: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tv-bg: #151311;
    --tv-surface: #1e1b18;
    --tv-surface-2: #201d1a;
    --tv-ink: #f3eee7;
    --tv-muted: #b5ab9e;
    --tv-line: #36312b;
    --tv-line-strong: #4a443c;
    --tv-primary: #7fd0b2;
    --tv-primary-hover: #99dcc3;
    --tv-on-primary: #0d2a21;
    --tv-primary-soft: #1d3a31;
    --tv-focus: #99dcc3;
    --tv-warn: #f0b467;
    --tv-warn-soft: #3a2a14;
    --tv-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 16px rgb(0 0 0 / 0.3);
    --tv-shadow-lg: 0 2px 6px rgb(0 0 0 / 0.5), 0 24px 60px -12px rgb(0 0 0 / 0.7);
    --tv-bezel: #3a342e;
    --tv-band: #1d3a31;
    --tv-on-band: #f3eee7;
    --tv-on-band-muted: #b9d9cc;
  }
}

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--tv-bg);
  color: var(--tv-ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--tv-primary);
  text-underline-offset: 0.18em;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--tv-focus);
  outline-offset: 2px;
  border-radius: 0.25rem;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: 44rem;
}
.muted {
  color: var(--tv-muted);
}
.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 10;
  background: var(--tv-surface);
  color: var(--tv-ink);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--tv-shadow);
}
.skip:focus {
  left: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 120ms ease,
    border-color 120ms ease;
}
.btn-primary {
  background: var(--tv-primary);
  color: var(--tv-on-primary);
}
.btn-primary:hover {
  background: var(--tv-primary-hover);
}
.btn-secondary {
  background: var(--tv-surface);
  color: var(--tv-ink);
  border-color: var(--tv-line-strong);
}
.btn-secondary:hover {
  background: var(--tv-surface-2);
}
.btn-lg {
  min-height: 3.5rem;
  padding: 0 1.6rem;
  font-size: 1.0625rem;
}
.btn-sm {
  min-height: 2.75rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
}
.btn-band {
  background: var(--tv-bg);
  color: var(--tv-ink);
}
.btn-band:hover {
  background: var(--tv-surface-2);
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--tv-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--tv-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img {
  width: 2rem;
  height: 2rem;
}
.nav {
  display: none;
  gap: 1.5rem;
  margin-right: 0.75rem;
}
.nav a {
  color: var(--tv-muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.9688rem;
}
.nav a:hover {
  color: var(--tv-ink);
}
.signin {
  color: var(--tv-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.6rem 0.4rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.signin:hover {
  text-decoration: underline;
}
@media (min-width: 56rem) {
  .nav {
    display: flex;
  }
}
@media (max-width: 21rem) {
  .brand span {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 2.25rem 3rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--tv-primary);
  background: var(--tv-primary-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 5vw, 4.9rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero .lede {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  color: var(--tv-muted);
  max-width: 34rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}
.more {
  font-weight: 650;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.cta-fine {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: var(--tv-muted);
}
.cta-note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--tv-line);
  font-size: 0.9688rem;
  color: var(--tv-muted);
  max-width: 34rem;
}
.cta-note strong {
  color: var(--tv-ink);
  font-weight: 650;
}
.cta-note a {
  font-weight: 650;
  white-space: nowrap;
}
@media (max-width: 29.99rem) {
  .btn-hero {
    width: 100%;
  }
  .cta-row .more {
    margin-inline: auto;
  }
}
/* Phone: copy, then the app, then the cleaner line. Laptop: copy and cleaner line left, app right. */
.hero-grid {
  grid-template-areas: "copy" "media" "note";
}
.hero-copy {
  grid-area: copy;
}
.hero-media {
  grid-area: media;
}
.hero-grid > .cta-note {
  grid-area: note;
  margin-top: 0;
}
@media (min-width: 60rem) {
  .hero {
    padding-block: 4rem 4.5rem;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    grid-template-areas: "copy media" "note media";
    grid-template-rows: auto auto;
    gap: 0 3rem;
  }
  .hero-copy {
    align-self: end;
  }
  .hero-grid > .cta-note {
    align-self: start;
    margin-top: 1.25rem;
  }
}
.after-steps {
  margin-top: 3rem;
  text-align: center;
}

/* ---------- Phone frames ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 17.5rem;
  padding: 0.5rem;
  border-radius: 2.75rem;
  background: var(--tv-bezel);
  box-shadow: var(--tv-shadow-lg);
}
.phone picture {
  display: block;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1298;
  border-radius: 2.3rem;
  background: var(--tv-bg);
}
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.phones .phone-back {
  display: none;
}
.phones .phone-front {
  width: min(80vw, 20rem);
  max-width: none;
}
@media (min-width: 40rem) {
  .phones .phone-back {
    display: block;
    width: 46%;
    max-width: 16rem;
    margin-top: 2.5rem;
    margin-right: -2rem;
  }
  .phones .phone-front {
    width: 50%;
    max-width: 17.5rem;
    z-index: 1;
  }
}
.shot-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--tv-muted);
}

/* ---------- Sections ---------- */
.section {
  padding-block: 4rem;
}
.section-alt {
  background: var(--tv-surface-2);
  border-block: 1px solid var(--tv-line);
}
.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.kicker {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tv-primary);
  margin-bottom: 0.75rem;
}
.section h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
}
.section-head p {
  margin-top: 1rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--tv-muted);
}
@media (min-width: 60rem) {
  .section {
    padding-block: 6rem;
  }
}

/* ---------- Letter ---------- */
.letter {
  max-width: 40rem;
  margin-inline: auto;
}
.letter h2 {
  margin-bottom: 1.25rem;
}
.letter p {
  font-size: clamp(1.125rem, 1.03rem + 0.45vw, 1.375rem);
  line-height: 1.6;
}
.letter p + p {
  margin-top: 1.1rem;
}
.letter .turn {
  font-weight: 750;
  color: var(--tv-ink);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}
.step .phone {
  max-width: 15rem;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--tv-primary);
  color: var(--tv-on-primary);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.step h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
}
.step p {
  margin-top: 0.6rem;
  color: var(--tv-muted);
  max-width: 22rem;
  margin-inline: auto;
}
@media (min-width: 56rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .step {
    align-content: start;
  }
}

/* ---------- Principles (cleaner side) ---------- */
.side-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.principles {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.principle {
  background: var(--tv-surface);
  border: 1px solid var(--tv-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.9rem;
}
.principle svg {
  grid-row: span 2;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--tv-primary);
  margin-top: 0.1rem;
}
.principle h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.principle p {
  color: var(--tv-muted);
  font-size: 1rem;
}
.side-cta {
  margin-top: 1.5rem;
}
.side-grid .phone {
  margin-inline: auto;
}
@media (min-width: 40rem) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 60rem) {
  .side-grid {
    grid-template-columns: 1fr 19rem;
    gap: 4rem;
  }
}

/* ---------- Team cards ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
}
.card {
  background: var(--tv-surface);
  border: 1px solid var(--tv-line);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-shot {
  background: var(--tv-surface-2);
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--tv-line);
}
.card-shot picture {
  display: block;
  max-width: 15rem;
  margin-inline: auto;
  aspect-ratio: 600 / 640;
  overflow: hidden;
  border-radius: 1.4rem 1.4rem 0 0;
  border: 6px solid var(--tv-bezel);
  border-bottom: 0;
}
.card-shot img {
  width: 100%;
  height: auto;
}
.card-body {
  padding: 1.35rem 1.4rem 1.6rem;
}
.role-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tv-primary);
  margin-bottom: 0.5rem;
}
.card h3 {
  font-size: 1.375rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.card-body > p:last-child {
  margin-top: 0.6rem;
  color: var(--tv-muted);
  font-size: 1rem;
}
@media (min-width: 56rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Ticks (pricing) ---------- */
.ticks {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.ticks li {
  position: relative;
  padding-left: 1.85rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--tv-primary-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d65' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
    center / 0.8rem no-repeat;
}

/* ---------- Offline strip ---------- */
.facts {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact {
  border-top: 2px solid var(--tv-ink);
  padding-top: 1rem;
}
.fact h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.fact p {
  margin-top: 0.4rem;
  color: var(--tv-muted);
  font-size: 1rem;
}
@media (min-width: 40rem) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}
@media (min-width: 60rem) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Pricing ---------- */
.price-card {
  max-width: 40rem;
  margin-inline: auto;
  background: var(--tv-surface);
  border: 1px solid var(--tv-line);
  border-radius: 1.25rem;
  box-shadow: var(--tv-shadow);
  padding: 2rem 1.35rem;
  text-align: center;
}
.price-card .price {
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.price-card .price-sub {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  color: var(--tv-muted);
}
.price-card .ticks {
  text-align: left;
  max-width: 26rem;
  margin: 1.75rem auto 0;
}
.price-card .btn {
  margin-top: 2rem;
}
@media (min-width: 40rem) {
  .price-card {
    padding: 3rem;
  }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 46rem;
  margin-inline: auto;
  border-top: 1px solid var(--tv-line);
}
.faq details {
  border-bottom: 1px solid var(--tv-line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  min-height: 3.5rem;
  font-weight: 700;
  font-size: 1.0938rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2.5px solid var(--tv-muted);
  border-bottom: 2.5px solid var(--tv-muted);
  transform: rotate(45deg) translateY(-25%);
}
.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-25%);
}
.faq details p {
  padding-bottom: 1.25rem;
  color: var(--tv-muted);
  max-width: 40rem;
}

/* ---------- Final band ---------- */
.band {
  background: var(--tv-band);
  color: var(--tv-on-band);
  padding-block: 4rem;
  text-align: center;
}
.band h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
}
.band p {
  margin-top: 1rem;
  color: var(--tv-on-band-muted);
  font-size: 1.125rem;
}
.band .cta-row {
  justify-content: center;
}
.band a.plain {
  color: var(--tv-on-band);
  font-weight: 650;
  min-height: 3.5rem;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.75rem;
}
@media (min-width: 60rem) {
  .band {
    padding-block: 5.5rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.5rem 3rem;
  font-size: 0.9375rem;
  color: var(--tv-muted);
}
.site-footer .wrap {
  display: grid;
  gap: 1.25rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-footer nav a {
  color: var(--tv-ink);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.site-footer nav a:hover {
  text-decoration: underline;
}
@media (min-width: 48rem) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  padding-block: 2.5rem 4rem;
}
.legal h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  letter-spacing: -0.04em;
}
.legal .updated {
  margin-top: 0.75rem;
  color: var(--tv-muted);
}
.draft {
  margin: 1.75rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 0.9rem;
  background: var(--tv-warn-soft);
  color: var(--tv-ink);
  border: 1px solid color-mix(in srgb, var(--tv-warn) 35%, transparent);
  font-size: 0.9688rem;
}
.draft strong {
  color: var(--tv-warn);
}
.legal .summary {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--tv-surface);
  border: 1px solid var(--tv-line);
}
.legal .summary h2 {
  margin-top: 0;
  font-size: 1.25rem;
}
.legal .summary ul {
  margin: 0.75rem 0 0;
}
.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.legal h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.legal p,
.legal ul,
.legal ol {
  margin-top: 0.85rem;
}
.legal ul,
.legal ol {
  padding-left: 1.25rem;
}
.legal li + li {
  margin-top: 0.4rem;
}
.legal .ph {
  background: var(--tv-warn-soft);
  color: var(--tv-ink);
  border-radius: 0.3rem;
  padding: 0 0.3rem;
  font-weight: 600;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9688rem;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--tv-line);
}
.legal th {
  font-weight: 700;
}
.table-scroll {
  overflow-x: auto;
}

/* ---------- 404 ---------- */
.notfound {
  padding-block: 5rem;
  text-align: center;
}
.notfound h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
}
.notfound p {
  margin-top: 1rem;
  color: var(--tv-muted);
}
.notfound .cta-row {
  justify-content: center;
}
