/* Clear Day, the same look as the app: one green, a pale ground mixed from it,
   white rounded cards, Bricolage Grotesque for headings, Figtree for the rest. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --primary: #0b7a63;
  --primary-hover: #0a6955;
  --primary-soft: #e2efec;
  --ground: #f0f7f6;
  --ink: #16242c;
  --n-200: #e3e8eb;
  --n-300: #cfd7dc;
  --n-500: #51616b;
  --n-700: #33434d;
  --warn: #9a5b00;
  --warn-soft: #fdf0dc;
  --radius-md: 0.875rem;
  --radius-lg: 1.375rem;
  --shadow: 0 1px 2px rgb(20 40 50 / 5%), 0 8px 24px rgb(20 40 50 / 5%);
  --heading: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  --body: "Figtree", Arial, Helvetica, sans-serif;
  --gutter: 1rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: #fff;
  border-radius: 999px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: 46rem;
}

/* Header */
.top {
  padding: 1rem 0;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 0.25rem;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.625rem;
  color: var(--n-500);
  font-size: 0.9375rem;
}

/* Sections */
section {
  padding: 2.25rem 0;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 700;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: 1.75rem;
}

.section-head p {
  margin-top: 0.625rem;
  color: var(--n-700);
}

/* Hero */
.hero {
  padding-top: 1rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.05;
}

.lead {
  margin-top: 1rem;
  color: var(--n-700);
  font-size: 1.1875rem;
}

.small {
  color: var(--n-500);
  font-size: 0.9375rem;
}

/* Store buttons */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.store {
  display: inline-flex;
  flex: 1 1 11rem;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--n-300);
  color: var(--n-500);
  font-weight: 600;
  line-height: 1.2;
}

.store svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store small {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
}

.store b {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.store-live {
  background: var(--primary);
  box-shadow: none;
  color: #fff;
}

.store-live:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.store-live b {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
}

.btn:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* The example screen */
.example {
  margin: 0;
}

.screen {
  max-width: 24rem;
  margin: 0 auto;
  padding: 1.125rem;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 2px 4px rgb(20 40 50 / 6%), 0 20px 48px rgb(20 40 50 / 10%);
}

.screen h2 {
  font-size: 1.375rem;
}

.screen ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.screen li {
  display: flex;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--n-200);
  font-size: 0.9375rem;
}

.screen li span:first-child {
  flex: none;
  width: 3.5rem;
  color: var(--n-500);
  font-variant-numeric: tabular-nums;
}

.bubble {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.bubble img {
  flex: none;
}

.example figcaption {
  margin-top: 0.75rem;
  color: var(--n-500);
  font-size: 0.8125rem;
  text-align: center;
}

/* Trades */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--n-700);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* Cards */
.cards {
  display: grid;
  gap: 0.875rem;
}

.card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.1875rem;
}

.card p {
  margin-top: 0.375rem;
  color: var(--n-700);
  font-size: 1rem;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
}

.tile svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Alek */
.alek {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.75rem;
  background: var(--primary);
  color: #fff;
}

.alek h2 {
  font-size: 1.75rem;
}

.alek p {
  margin-top: 0.625rem;
}

.alek-mark {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: #fff;
}

blockquote {
  margin: 0;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 12%);
  font-family: var(--heading);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Plans */
.plans {
  display: grid;
  gap: 0.875rem;
}

.plan h3 {
  font-size: 1.25rem;
}

.price {
  margin-top: 0.5rem;
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.price small {
  color: var(--n-500);
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 500;
}

.plan ul,
.notes {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.125rem;
  color: var(--n-700);
  font-size: 0.9375rem;
}

.notes {
  margin-top: 1.25rem;
}

.notes li,
.plan li {
  margin-top: 0.25rem;
}

/* Closing */
.closing {
  padding: 1.75rem 1.5rem;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.closing h2 {
  font-size: 1.75rem;
}

/* Footer */
footer {
  margin-top: 1.5rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--n-500);
  font-size: 0.9375rem;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Reading pages: support, deletion and the legal text */
.page {
  padding: 1rem 0 2rem;
}

.page h1 {
  font-size: 2rem;
}

.updated {
  margin-top: 0.375rem;
  color: var(--n-500);
  font-size: 0.9375rem;
}

.doc {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--n-700);
}

.doc h2 {
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.2;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin: 1.25rem 0 0.375rem;
  color: var(--ink);
  font-size: 1.0625rem;
}

.doc p + p,
.doc ul + p,
.doc ol + p,
.doc .legal-table + p {
  margin-top: 0.75rem;
}

.doc ul,
.doc ol {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}

.doc li {
  margin-top: 0.375rem;
}

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

.notice {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.9375rem;
}

.legal-table {
  margin: 0.75rem 0;
}

.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-table th {
  padding: 0.5rem 0.625rem 0.5rem 0;
  border-bottom: 2px solid var(--n-300);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.legal-table td {
  padding: 0.5rem 0.625rem 0.5rem 0;
  border-bottom: 1px solid var(--n-200);
  vertical-align: top;
}

/* On a phone each row of a legal table becomes a small block, so nothing scrolls sideways. */
@media (max-width: 39.99rem) {
  .legal-table thead {
    position: absolute;
    left: -999px;
  }
  .legal-table table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
  }
  .legal-table tr {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--n-200);
  }
  .legal-table td {
    padding: 0.125rem 0;
    border: 0;
  }
  .legal-table td:first-child {
    color: var(--ink);
    font-weight: 700;
  }
}

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }
  section {
    padding: 3rem 0;
  }
  .hero h1 {
    font-size: 3.25rem;
  }
  .section-head h2,
  .alek h2,
  .closing h2 {
    font-size: 2.125rem;
  }
  .cards,
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store {
    flex: 0 1 auto;
    min-width: 12.5rem;
  }
  .doc {
    padding: 1.75rem 2rem;
  }
  .page h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 3rem;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .alek {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 2.25rem;
  }
  .closing {
    padding: 2.25rem;
  }
}

@media (min-width: 70rem) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .top nav,
  footer ul,
  .skip {
    display: none;
  }
  body {
    background: #fff;
  }
  .doc {
    box-shadow: none;
    padding: 0;
  }
}
