/* Olme. Plain CSS, phone first. Font: Figtree, SIL Open Font License 1.1, served from /fonts/ (see fonts/OFL.txt). */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --olive: #37451C;
  --olive-2: #414F24;
  --cream: #F6F1E3;
  --leaf: #8E9B3A;
  --lime: #B9C45A; /* means one thing: the launch offer */
  --green: #5F7F1C; /* means one thing: the price after discount, on a light card */
  --ink: #1F2414;
  --mute: #5B6150;
  --line: #DAD5C3;
  --paper: #FFFDF8;
  --soft-on-olive: #D9DCC4;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--olive);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* keeps the footer at the bottom on short pages */
}
main { flex: 1 0 auto; width: 100%; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Top of every page */
.top { background: var(--olive); color: var(--cream); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.bar .logo { display: block; padding-block: 4px; flex: none; }
.bar .logo img { width: 104px; margin-left: -6px; } /* the logo drawing has a small blank edge */
.bar nav { display: flex; gap: 2px; margin-right: -8px; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.bar nav a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { background: var(--olive-2); }
.hero .btn, .close .btn { background: var(--cream); color: var(--olive); }
.hero .btn:hover, .close .btn:hover { background: #fff; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Hero: the sample phones are the only strong colour on the page, because they show the work */
.hero { background: var(--olive); border-radius: 0 0 28px 28px; overflow: hidden; }
.hero-grid { display: grid; padding-block: 4px 0; }
.flash {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--olive);
  font-size: clamp(.8125rem, 3.8vw, .9375rem);
  font-weight: 700;
  line-height: 1.35;
}
.hero h1 { margin-top: 12px; font-size: clamp(1.625rem, 8.5vw, 3.25rem); line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }
.hero h1 span { display: block; }
.hero .sub { margin-top: 8px; font-size: 1.0625rem; line-height: 1.35; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 14px; }
.hero-art { margin: 10px -20px 0; }
.phones { display: block; width: 100%; height: auto; }
.hero-art figcaption { padding: 6px 16px 14px; text-align: center; font-size: .8125rem; color: var(--soft-on-olive); }
.ad-h { font-size: 26px; font-weight: 800; fill: #fff; letter-spacing: -.3px; }
.ad-b { font-size: 14px; font-weight: 700; fill: #fff; }
.ad-b.d { fill: #2A1830; }
.ad-l { font-size: 14px; font-weight: 700; fill: #fff; }
.ad-o { font-size: 9.5px; font-weight: 800; fill: #fff; letter-spacing: .4px; }
.art-t { font-size: 17px; font-weight: 800; letter-spacing: .3px; }

/* Sections */
.section { padding-block: 32px; }
.section + .section { padding-top: 0; }
.section h2, .close h2 { font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--olive); }

/* What we do */
.trio { margin-top: 14px; display: grid; gap: 10px; }
.tile {
  display: grid;
  grid-template-columns: 38% 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 6px;
  background: var(--paper);
  border-radius: 18px;
}
.tile svg { display: block; width: 100%; height: auto; }
.tile h3 { font-size: 1.375rem; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--olive); }
.tile p { margin-top: 4px; font-size: .9375rem; line-height: 1.3; }

/* How it works */
.steps { margin-top: 14px; display: grid; gap: 12px; counter-reset: step; }
.steps li { position: relative; padding-left: 40px; line-height: 1.3; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.14em; font-size: 1.75rem; line-height: 1.2; font-weight: 800; color: var(--olive); }
.steps b { font-weight: 800; color: var(--olive); }

/* Packages. A card shows only what differs between them. */
.all { margin-top: 8px; line-height: 1.35; }
.offer {
  margin-top: 14px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  background: var(--lime);
  color: var(--olive);
  border-radius: 16px;
}
.offer b { font-size: clamp(2rem, 10.5vw, 2.75rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.offer span { font-size: .9375rem; line-height: 1.2; font-weight: 600; }
.offer strong { display: block; font-size: clamp(.875rem, 4.4vw, 1.125rem); font-weight: 800; white-space: nowrap; }
.offer small { flex-basis: 100%; font-size: .9375rem; line-height: 1.3; font-weight: 500; }
.plans { margin-top: 10px; display: grid; gap: 10px; }
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  gap: 0 12px;
  padding: 16px 18px;
  background: var(--paper);
  border-radius: 18px;
}
.plan.hi { background: var(--olive); color: var(--cream); }
.plan h3 { grid-column: 1 / -1; font-size: 1.25rem; line-height: 1.2; font-weight: 800; }
.price { margin-top: 6px; }
.price s { display: block; font-size: 1.375rem; line-height: 1.2; font-weight: 500; color: var(--mute); text-decoration-thickness: 1.5px; }
.plan.hi .price s { color: var(--soft-on-olive); }
.price b { display: block; font-size: clamp(2.75rem, 13.5vw, 3.25rem); line-height: 1; font-weight: 800; letter-spacing: -.025em; color: var(--green); }
.plan.hi .price b { color: var(--lime); }
.price span { display: block; font-size: .9375rem; line-height: 1.25; font-weight: 600; }
.counts { margin-top: 12px; display: grid; align-content: start; gap: 6px; }
.counts li { display: grid; grid-template-columns: 2.75rem auto; align-items: baseline; gap: 6px; font-size: 1rem; line-height: 1.1; font-weight: 600; }
.counts b { text-align: right; font-size: 2.25rem; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.adds { grid-column: 1 / -1; margin-top: 10px; font-size: 1.0625rem; line-height: 1.25; font-weight: 800; color: var(--olive); }
.next { margin-top: 14px; }
.promise { margin-top: 12px; font-size: .875rem; line-height: 1.4; color: var(--mute); max-width: 46rem; }
.promise b { font-weight: 700; color: var(--ink); }

/* Questions: tap to open */
.qa { margin-top: 10px; display: grid; gap: 6px; }
.qa details { background: var(--paper); border-radius: 12px; }
.qa summary {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 44px 8px 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--olive);
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 14px; top: 50%; margin-top: -.6em; font-size: 1.5rem; line-height: 1.2; font-weight: 500; }
.qa details[open] summary::after { content: "\2212"; }
.qa summary:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 12px; }
.qa details p { padding: 0 14px 14px; line-height: 1.4; }
.qa details p + p { margin-top: -6px; }
.vs { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vs > div { background: var(--paper); color: var(--olive); border-radius: 18px; padding: 12px 10px; text-align: center; }
.vs h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.vs svg { display: block; width: 100%; height: auto; margin-top: 6px; }
.vs p { margin-top: 6px; font-size: .8125rem; line-height: 1.25; }
.vs p b { display: block; font-size: .9375rem; font-weight: 800; }

/* The gift and the next step */
.close { background: var(--olive); color: var(--cream); padding-block: 28px; }
.close h2 { color: var(--cream); }
.close p { margin-top: 8px; line-height: 1.35; }
.close p.note { font-size: .875rem; color: var(--soft-on-olive); }
.close p.reach { margin-top: 18px; font-weight: 600; }
.close .btn { margin-top: 10px; }

/* Who we are, saying no */
.close + .section { padding-block: 28px; }
.duo { display: grid; gap: 14px; font-size: .9375rem; line-height: 1.4; color: var(--mute); }
.duo h3 { font-size: 1.0625rem; font-weight: 800; color: var(--olive); }
.duo p { margin-top: 2px; }

/* Footer */
.foot { background: var(--olive); color: var(--cream); padding-block: 20px; font-size: .9375rem; }
.foot p { margin-top: 0; }
.foot ul { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; }

/* Legal and privacy pages */
.doc { padding-block: 32px 56px; max-width: 46rem; }
.doc h1 { font-size: 2.25rem; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; color: var(--olive); }
.doc .lead { margin-top: 12px; font-size: 1.1875rem; line-height: 1.45; }
.doc h2 { margin-top: 32px; font-size: 1.25rem; line-height: 1.25; font-weight: 600; color: var(--olive); }
.doc h2 + p, .doc h2 + ul { margin-top: 6px; }
.doc p + p { margin-top: 12px; }
.doc ul { margin-top: 8px; }
.doc ul + p { margin-top: 12px; }
.doc ul li { position: relative; padding-left: 18px; margin-top: 4px; }
.doc ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
}
.doc .short {
  margin-top: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.details { margin-top: 24px; border-bottom: 1px solid var(--line); }
.details > div { padding-block: 12px; border-top: 1px solid var(--line); }
.details dt { font-weight: 600; color: var(--olive); }
.details dd { margin-top: 2px; overflow-wrap: anywhere; }

/* Not found page */
.lost { padding-block: 64px 80px; }
.lost h1 { font-size: 2.25rem; line-height: 1.1; font-weight: 600; color: var(--olive); }
.lost p { margin-top: 12px; }
.lost .btn { margin-top: 20px; }

/* Wider screens */
@media (min-width: 720px) {
  .wrap { padding-inline: 40px; }
  .bar .logo img { width: 128px; }
  .bar nav a { padding-inline: 12px; }
  .hero-art { margin: 16px auto 0; width: 100%; max-width: 620px; }
  .section { padding-block: 64px; }
  .section h2, .close h2 { font-size: 2.25rem; }
  .trio { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
  .tile { display: block; padding: 20px; }
  .tile h3 { margin-top: 14px; }
  .steps { margin-top: 24px; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; }
  .plans, .offer { max-width: 34rem; }
  .close { padding-block: 56px; }
  .close p { font-size: 1.1875rem; max-width: 42rem; }
  .close p.note { font-size: .9375rem; }
  .promise { font-size: .9375rem; }
  .close + .section { padding-block: 48px; }
  .duo { grid-template-columns: 1fr 1fr; gap: 40px; }
  .vs { gap: 12px; }
  .vs > div { padding: 18px 16px; }
  .vs p { font-size: .9375rem; }
  .vs p b { font-size: 1.0625rem; }
  .foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
  .foot ul { margin-top: 0; }
  .doc { padding-block: 48px 80px; }
  .doc h1, .lost h1 { font-size: 2.75rem; }
  .details > div { display: grid; grid-template-columns: 13rem 1fr; gap: 16px; }
  .details dd { margin-top: 0; }
}

@media (min-width: 1000px) {
  .hero { border-radius: 0 0 40px 40px; }
  .hero .bar, .hero-grid { max-width: 1360px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; padding-block: 8px 28px; }
  .hero h1 { margin-top: 20px; font-size: clamp(2.625rem, 4vw, 3.625rem); }
  .hero .sub { margin-top: 14px; font-size: 1.25rem; }
  .actions { margin-top: 24px; }
  .hero-art { margin: 0; max-width: none; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li { padding-left: 0; }
  .steps li::before { position: static; display: block; margin-bottom: 6px; font-size: 2.5rem; line-height: 1; }
  .plans, .offer { max-width: none; }
  .offer { padding: 14px 24px; gap: 0 24px; }
  .offer b { font-size: 3.25rem; }
  .offer span { font-size: 1.125rem; }
  .offer strong { display: inline; font-size: 1.375rem; }
  .offer small { flex-basis: auto; margin-left: auto; font-size: 1.125rem; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .plan { padding: 22px; border-radius: 20px; }
  .plan h3 { font-size: 1.5rem; }
  .price s { font-size: 1.5rem; }
  .price b { font-size: 3.5rem; }
  .price span { font-size: 1rem; }
  .next { margin-top: 20px; }
  .words-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: start; }
  .words-grid h2 { grid-column: 1 / -1; }
  .vs { margin-top: 0; grid-column: 2; grid-row: 2; }
  .qa { margin-top: 0; grid-column: 1; grid-row: 2; }
}

/* Inside the sample phones only: they show videos, so they move. None for anyone who asked for less. */
@media (prefers-reduced-motion: no-preference) {
  .spin { animation: spin 48s linear infinite; transform-origin: 90px 206px; }
  .snip-a { animation: snip-a 3.2s ease-in-out infinite; transform-origin: 90px 200px; }
  .snip-b { animation: snip-b 3.2s ease-in-out infinite; transform-origin: 90px 200px; }
  .swing { animation: swing 3.6s ease-in-out infinite; transform-origin: 132px 207px; }
  .fill { animation: fill 8s linear infinite; transform-origin: 10px 22px; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes snip-a { 50% { transform: rotate(-10deg); } }
@keyframes snip-b { 50% { transform: rotate(10deg); } }
@keyframes swing { 25% { transform: rotate(5deg); } 75% { transform: rotate(-5deg); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
