/* David — manoistudios.com/david
   Palette: limestone ground, slate ink, sling-stone red (the icon's red). One type family, two widths. */

/* Archivo, self-hosted (manoistudios.com loads nothing from other sites). Widths 62-125%, weights 100-900. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #eef1f4;
  --paper: #f8fafb;
  --ink: #18222f;
  --stone: #586372;
  --line: #d3d9e0;
  --red: #e5484d;
  --red-deep: #c8363b;
  --night: #121a24;
  --wide: 125;
  --measure: 66ch;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }

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

/* ---- type scale (1.25 ratio from 18px) ---- */
.display, h1, h2, h3 {
  font-variation-settings: "wdth" var(--wide);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 850; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 750; line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(19px, 2vw, 22px); color: var(--stone); line-height: 1.55; }
.small { font-size: 15px; color: var(--stone); }

/* ---- header ---- */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800;
  font-variation-settings: "wdth" var(--wide); font-size: 20px; }
.brand img { width: 30px; height: 30px; }
.site-head nav { display: flex; gap: 22px; font-size: 16px; }
.site-head nav a { text-decoration: none; color: var(--stone); }
.site-head nav a:hover { color: var(--ink); }

/* ---- hero ---- */
.hero { padding: 28px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 span { display: block; }
@media (min-width: 861px) { .hero h1 span { white-space: nowrap; } }
.hero .lead { margin-bottom: 30px; max-width: 34em; }

.install { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn[aria-disabled="true"] { opacity: .7; cursor: default; pointer-events: none; }
.btn .soon { font-weight: 500; font-size: 14px; }

/* ---- the phone: a Reels feed where David skips an ad and an AI video ---- */
.phone {
  justify-self: center;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 38px;
  background: var(--night);
  padding: 12px;
  box-shadow: 0 30px 60px -28px rgba(24, 34, 47, .55);
  position: relative;
}
.screen { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: #000; }
.track { position: absolute; inset: 0; animation: feed 12s infinite; }
.reel { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 16px 22px; color: #fff; font-size: 14px; line-height: 1.35; }
.reel-1 { background:
  radial-gradient(circle at 70% 30%, #ffd166 0 18%, transparent 19%),
  linear-gradient(160deg, #ff7a59, #d6336c 70%); }
.reel-2 { background:
  radial-gradient(ellipse at 30% 35%, #a5f3fc 0 12%, transparent 30%),
  radial-gradient(ellipse at 65% 55%, #c4b5fd 0 15%, transparent 35%),
  linear-gradient(200deg, #312e81, #7c3aed 60%, #db2777); }
.reel-3 { background:
  radial-gradient(circle at 35% 40%, #e9c46a 0 9%, transparent 10%),
  radial-gradient(circle at 60% 46%, #e76f51 0 7%, transparent 8%),
  linear-gradient(180deg, #8ecae6 0 42%, #6a994e 42% 100%); }
.reel .who { font-weight: 700; }
.reel .tag { display: inline-block; margin-top: 4px; font-size: 12px; opacity: .9; }
.reel .cta { margin-top: 10px; align-self: flex-start; background: rgba(255,255,255,.92); color: #222;
  font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 6px; }
.reel .big { position: absolute; top: 22%; left: 16px; right: 16px; font-weight: 900; font-size: 44px;
  line-height: .95; font-variation-settings: "wdth" var(--wide); text-shadow: 0 2px 10px rgba(0,0,0,.25); }

/* David's card, as it looks in the extension */
.card {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(12, 16, 22, .78); backdrop-filter: blur(6px);
  opacity: 0;
}
.card div { text-align: center; color: #fff; padding: 0 18px; }
.card img { width: 46px; height: 46px; margin: 0 auto 10px; }
.card b { display: block; font-size: 18px; font-variation-settings: "wdth" var(--wide); }
.card span { font-size: 12px; opacity: .75; }
.reel-1 .card { animation: card1 12s infinite; }
.reel-2 .card { animation: card2 12s infinite; }

@keyframes feed {
  0%, 24%   { transform: translateY(0); }
  29%, 54%  { transform: translateY(-100%); }
  59%, 94%  { transform: translateY(-200%); }
  100%      { transform: translateY(-200%); }
}
@keyframes card1 { 0%, 10% { opacity: 0; } 13%, 27% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes card2 { 0%, 38% { opacity: 0; } 41%, 56% { opacity: 1; } 59%, 100% { opacity: 0; } }

.phone-caption { margin-top: 18px; text-align: center; font-size: 15px; color: var(--stone); }

@media (prefers-reduced-motion: reduce) {
  .track, .card { animation: none; }
  .reel-1 .card { opacity: 1; }
}

/* ---- sections ---- */
section { padding: 72px 0; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-head p { margin-top: 14px; }

/* what David blocks: two lists side by side */
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.blocks h3 { padding-bottom: 12px; border-bottom: 3px solid var(--ink); margin-bottom: 6px; }
.blocks .ai h3 { border-color: var(--red); }
.blocks ul { list-style: none; margin: 0; padding: 0; }
.blocks li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.blocks li strong { display: block; font-size: 17px; }
.blocks li span { color: var(--stone); font-size: 16px; }

/* why: four plain statements */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 56px; }
.why h3 { margin-bottom: 10px; }
.why p { color: var(--stone); margin: 0; }

/* votes */
.votes h2, .support h2 { margin-bottom: 16px; }
.votes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.vote-demo { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.vote-demo .q { font-size: 14px; color: var(--stone); margin-bottom: 8px; }
.vote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.vote-row span { display: block; text-align: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 650; font-size: 15px; }
.vote-row span.on { background: var(--red); border-color: var(--red); color: #fff; }
.vote-demo .note { font-size: 13px; color: var(--stone); margin: 6px 0 0; }

/* support */
.support { background: var(--ink); color: #fff; }
.support .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 40px; align-items: center; }
.support p { color: #c9d1db; }
.support .btn-primary { font-size: 18px; padding: 16px 26px; }

/* footer */
.site-foot { padding: 36px 0 48px; font-size: 15px; color: var(--stone); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- privacy page ---- */
.doc { padding: 24px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc ul { padding-left: 1.2em; max-width: var(--measure); }
.doc li { margin-bottom: 6px; }
.doc code { font-size: .9em; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- small screens ---- */
@media (max-width: 860px) {
  .hero .wrap, .votes, .support .wrap { grid-template-columns: 1fr; }
  .hero { padding-bottom: 48px; }
  .phone { margin-top: 8px; width: min(250px, 70vw); }
  .blocks, .why { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 56px 0; }
  .site-head nav { display: none; }
}

/* manoistudios.com's credit bar (the same words as every page of the site, in David's type) */
.credit-bar { background: #12151d; color: #c9d1db; font-size: 15px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); }
.credit-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.credit-text { margin: 0; max-width: 70ch; }
.credit-name { color: #fff; font-weight: 700; }
.credit-name:hover { color: #fff; }
.credit-cta { flex: none; padding: 6px 14px; color: #fff; font-weight: 700; text-decoration: none; border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.credit-cta:hover { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px #fff; }

/* manoistudios.com fix: the phone's "Summer sale" headline was cut off on phones (the mockup shrinks, the type didn't) */
@media (max-width: 860px) { .reel .big { font-size: min(34px, calc((70vw - 56px) * .17)); } }
