/* Ordrett marketing and legal pages. Keep this as the single source of truth
   for layout, interaction states, and brand tokens across ordrett.app. */
:root {
  --green: #2f5d50;
  --green-deep: #244a40;
  --deep: #16241f;
  --mid: #244438;
  --cream: #f7f4ee;
  --surface: #fffdf8;
  --tint: #e7efec;
  --ink: #1c2b27;
  --muted: #5c6b66;
  --dim: rgba(247, 244, 238, 0.72);
  --amber: #e0b452;
  --amber-bg: rgba(224, 180, 82, 0.14);
  --line-dark: rgba(247, 244, 238, 0.14);
  --line-light: rgba(28, 43, 39, 0.12);
  --shadow: 0 28px 70px -42px rgba(22, 36, 31, 0.55);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 5px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--deep);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.narrow {
  width: min(100% - 48px, 760px);
  margin-inline: auto;
}

/* Shared navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(22, 36, 31, 0.94);
  color: var(--cream);
  backdrop-filter: blur(12px);
}

.site-header .bar {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--cream);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-primary {
  background: var(--green);
  color: #fff;
}

.button-primary:hover {
  background: var(--green-deep);
}

.button-light {
  background: var(--cream);
  color: var(--deep);
}

.button-light:hover {
  background: #fff;
}

.button-outline {
  border-color: var(--line-dark);
  color: var(--cream);
}

.button-outline:hover {
  border-color: rgba(247, 244, 238, 0.4);
  background: rgba(247, 244, 238, 0.08);
}

.header-cta {
  min-height: 44px;
  padding: 10px 15px;
  background: var(--cream);
  color: var(--deep);
  font-size: 14px;
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  display: inline-flex;
  min-width: 64px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 11px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu[open] summary {
  background: rgba(247, 244, 238, 0.1);
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(290px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--deep);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.mobile-menu-panel .nav-link {
  padding-inline: 14px;
  border-radius: 9px;
}

.mobile-menu-panel .nav-link:hover {
  background: rgba(247, 244, 238, 0.08);
}

.mobile-menu-panel .button {
  margin-top: 6px;
}

/* Typography and reusable sections */
.eyebrow,
.kicker {
  margin: 0 0 16px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(29px, 4vw, 44px);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.section {
  padding-block: 96px;
}

/* Explicitly fixes the old specificity collision between .wrap and section. */
section.wrap {
  padding-block: 72px;
}

.section-surface {
  background: var(--surface);
}

.section-dark {
  background: var(--deep);
  color: var(--cream);
}

.section-heading {
  max-width: 760px;
}

.section-heading .intro {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-dark .kicker,
.band .kicker {
  color: var(--amber);
}

.section-dark .section-heading .intro,
.section-dark .intro {
  color: var(--dim);
}

/* Homepage hero */
.home-hero {
  overflow: hidden;
  padding-block: 82px 94px;
  background: var(--deep);
  color: var(--cream);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(42px, 7vw, 84px);
}

.home-hero .eyebrow,
.hero .eyebrow {
  color: var(--amber);
}

.home-hero h1 .soft,
.hero h1 .soft {
  color: var(--dim);
}

.hero-lead,
.hero .lead {
  max-width: 34em;
  margin: 24px 0 0;
  color: var(--dim);
  font-size: 19px;
  line-height: 1.58;
}

.store-actions {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.store-badge {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.store-badge img {
  display: block;
  width: auto;
  height: 48px;
}

.store-badge {
  border-radius: 8px;
}

.availability {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 14px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  padding: 7px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 650;
}

.app-preview {
  position: relative;
  max-width: 470px;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  background: var(--mid);
  box-shadow: 0 42px 90px -45px rgba(0, 0, 0, 0.9);
}

.app-preview::before {
  position: absolute;
  inset: -90px -70px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(47, 93, 80, 0.28);
  content: "";
  filter: blur(12px);
  pointer-events: none;
}

.app-preview-inner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--cream);
  color: var(--ink);
}

.app-preview-bar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-light);
  font-size: 13px;
  font-weight: 750;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 11px;
}

.preview-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.preview-summary {
  margin: 14px;
  padding: 17px;
  border: 1px solid var(--line-light);
  border-radius: 15px;
  background: #fff;
}

.preview-label {
  margin-bottom: 6px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-summary h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.preview-summary p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.speaker-chips {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.speaker-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
}

.transcript-preview {
  padding: 0 14px 14px;
}

.transcript-row {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 10px;
  padding: 11px 3px;
  border-top: 1px solid var(--line-light);
}

.transcript-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.transcript-meta strong {
  display: block;
  color: var(--green);
  font-weight: 750;
}

.transcript-row p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.uncertain {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #fff4d6;
  color: #80631c;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 750;
}

/* Trust and use cases */
.trust-band {
  border-bottom: 1px solid var(--line-light);
  background: var(--surface);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  padding: 22px 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.trust-list li::before {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.use-case-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.use-case-card:hover {
  border-color: rgba(47, 93, 80, 0.4);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-3px);
}

.card-icon,
.feat .ic {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--green);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 750;
}

.use-case-card p {
  margin: 12px 0 24px;
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
}

.comparison-link {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.comparison-link:hover {
  border-color: rgba(47, 93, 80, 0.45);
  text-decoration: none;
}

/* Product-oriented three-screen flow */
.product-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
  counter-reset: flow;
}

.flow-step {
  counter-increment: flow;
}

.flow-step-heading {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 10px;
  margin-bottom: 16px;
}

.flow-step-heading::before {
  content: "0" counter(flow);
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 750;
  line-height: 24px;
}

.flow-step-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.phone-ui {
  min-height: 390px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line-light);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
  font-size: 12px;
  font-weight: 750;
}

.wave-mini {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 26px 0 10px;
}

.wave-mini span {
  width: 5px;
  border-radius: 999px;
  background: var(--green);
  animation: level 1.65s ease-in-out infinite alternate;
}

.wave-mini span:nth-child(2n) {
  animation-delay: -0.7s;
}

.wave-mini span:nth-child(3n) {
  animation-delay: -1.15s;
}

@keyframes level {
  from { transform: scaleY(0.65); }
  to { transform: scaleY(1); }
}

.record-time {
  margin: 0;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 750;
  text-align: center;
}

.record-button {
  display: block;
  width: 62px;
  height: 62px;
  margin: 15px auto 8px;
  border: 8px solid #f0ded9;
  border-radius: 50%;
  background: #c23b3b;
  box-shadow: 0 0 0 1px #c23b3b;
}

.ui-hint {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.ui-panel,
.ui-summary {
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: #fff;
}

.ui-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}

.ui-row + .ui-row {
  border-top: 1px solid var(--line-light);
}

.toggle {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--green);
}

.toggle::after {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.processing {
  display: grid;
  place-items: center;
  min-height: 358px;
  text-align: center;
}

.processing-ring {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin: 0 auto 20px;
  border: 8px solid var(--tint);
  border-top-color: var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 750;
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: scale(1.035); }
}

.processing h3 {
  font-size: 18px;
}

.processing p {
  max-width: 230px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.progress-steps {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: 25px;
  text-align: left;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.progress-step::before {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green);
  content: "✓";
  font-weight: 800;
}

.ui-summary .preview-label {
  margin: 0 0 6px;
}

.ui-summary h3 {
  font-size: 17px;
}

.ui-summary p,
.ui-summary li {
  color: var(--muted);
  font-size: 11px;
}

.ui-summary p {
  margin: 9px 0 0;
}

.ui-summary ul {
  margin: 10px 0 0;
  padding-left: 16px;
}

.play-row {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.play-dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 9px;
}

/* Existing use-case page components */
.hero {
  overflow: hidden;
  padding: 64px 0 72px;
  background: var(--deep);
  color: var(--cream);
}

.hero h1 {
  max-width: 15em;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}

.hero .store-actions {
  margin-top: 28px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.feat h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.feat p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.steps {
  margin-top: 40px;
  border-top: 1px solid var(--line-light);
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-light);
}

.num {
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 750;
}

.step h3 {
  font-size: 19px;
}

.step p {
  max-width: 40em;
  margin: 5px 0 0;
  color: var(--muted);
}

.prose {
  max-width: 46em;
  margin-top: 30px;
}

.prose p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.prose strong {
  color: var(--ink);
}

.band {
  padding: 76px 0;
  background: var(--deep);
  color: var(--cream);
}

.band h2 {
  color: var(--cream);
}

.band > .wrap > p {
  max-width: 38em;
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 16.5px;
}

/* Quality */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.quality-card {
  min-height: 245px;
  padding: 25px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: var(--mid);
}

.quality-value {
  color: var(--amber);
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.quality-card h3 {
  margin-top: 13px;
  color: var(--cream);
  font-size: 17px;
}

.quality-card p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 14px;
}

.method {
  max-width: 850px;
  margin-top: 26px;
  border-top: 1px solid var(--line-dark);
}

.method summary {
  display: inline-flex;
  min-height: 44px;
  cursor: pointer;
  align-items: center;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
}

.method p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 13px;
}

.method a {
  color: var(--cream);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
  margin-top: 42px;
}

.price-card {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  background: var(--surface);
}

.price-card.featured {
  border: 2px solid var(--green);
  box-shadow: var(--shadow);
}

.price-tag {
  align-self: flex-start;
  margin-bottom: 15px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.price {
  margin-top: 11px;
  color: var(--green);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.price small {
  font-size: 14px;
  font-weight: 650;
}

.price-points {
  display: grid;
  gap: 9px;
  margin: 22px 0 28px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.price-points li {
  position: relative;
  padding-left: 22px;
}

.price-points li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 800;
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin-top: 36px;
  border-top: 1px solid var(--line-light);
}

.faq-item {
  border-bottom: 1px solid var(--line-light);
}

.faq-item summary {
  display: flex;
  min-height: 68px;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: var(--green);
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 650px;
  margin: -3px 0 22px;
  color: var(--muted);
}

/* Comparison table: a table on wide screens, labelled plan cards on mobile. */
.compare-wrap {
  overflow: hidden;
  margin-top: 40px;
  border: 1px solid var(--line-light);
  border-radius: 16px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  background: var(--deep);
  color: var(--cream);
  font-weight: 700;
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:first-child {
  color: var(--ink);
  font-weight: 750;
}

.compare td {
  color: var(--muted);
}

.tnote {
  max-width: 54em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Legal pages */
.legal-page {
  width: min(100% - 48px, 760px);
  margin-inline: auto;
  padding-block: 64px 90px;
}

.legal-page h1 {
  font-size: clamp(32px, 5vw, 46px);
}

.legal-page h2 {
  margin: 38px 0 10px;
  color: var(--green);
  font-size: 21px;
  letter-spacing: -0.015em;
}

.legal-page p,
.legal-page li {
  color: var(--ink);
}

.legal-page .muted {
  color: var(--muted);
  font-size: 14px;
}

.legal-page ul {
  padding-left: 22px;
}

.legal-page li + li {
  margin-top: 6px;
}

.legal-card,
.legal-page .card {
  margin: 20px 0;
  padding: 20px 22px;
  border: 1px solid var(--line-light);
  border-radius: 15px;
  background: var(--surface);
}

.legal-page code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #e9e4d9;
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 60px 0 28px;
  background: var(--deep);
  color: var(--dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(130px, 0.7fr));
  gap: 40px;
}

.footer-brand p {
  max-width: 360px;
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 14px;
}

.footer-heading {
  margin: 0 0 8px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 750;
}

.footer-links {
  display: grid;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--dim);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  color: var(--dim);
  font-size: 12px;
}

.footer-bottom a {
  color: var(--dim);
}

.footer-simple {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, auto);
  align-items: start;
  gap: 30px;
}

.footer-simple-copy {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 13px;
}

.footer-simple-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 22px;
}

.footer-simple-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--dim);
  font-size: 13px;
}

.footer-simple-links a:hover {
  color: var(--cream);
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .app-preview {
    width: min(100%, 560px);
    max-width: none;
  }

  .product-flow {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .flow-step {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr);
    gap: 22px;
  }

  .flow-step-heading {
    align-self: start;
  }

  .phone-ui {
    min-height: 360px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }

  .footer-simple {
    grid-template-columns: 1fr;
  }

  .footer-simple-links {
    justify-content: flex-start;
  }

  .footer-product {
    display: none;
  }
}

@media (max-width: 760px) {
  .wrap,
  .narrow,
  .legal-page {
    width: min(100% - 36px, 1080px);
  }

  .section {
    padding-block: 68px;
  }

  section.wrap {
    padding-block: 56px;
  }

  .home-hero {
    padding-block: 56px 66px;
  }

  .home-hero-grid {
    gap: 42px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .hero {
    padding: 52px 0 60px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-lead,
  .hero .lead {
    font-size: 17px;
  }

  .trust-list {
    grid-template-columns: 1fr;
    gap: 4px 8px;
    padding-block: 17px;
  }

  .trust-list li {
    padding: 7px 4px;
    font-size: 12px;
    text-align: center;
  }

  .use-case-grid,
  .features,
  .quality-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .use-case-card,
  .price-card,
  .quality-card {
    min-height: 0;
  }

  .flow-step {
    display: block;
  }

  .phone-ui {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .compare-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .compare tbody {
    display: grid;
    gap: 14px;
  }

  .compare tr {
    overflow: hidden;
    border: 1px solid var(--line-light);
    border-radius: 15px;
    background: var(--surface);
  }

  .compare td {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-light);
  }

  .compare td::before {
    color: var(--green);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 750;
  }

  .compare tbody tr:last-child td:not(:last-child),
  .compare td:not(:last-child) {
    border-bottom: 1px solid var(--line-light);
  }

  .compare td:last-child {
    border-bottom: 0;
  }

  .step {
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }

  .store-actions {
    gap: 11px;
  }

  .store-badge img {
    height: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
