/* tagdibody.com
   The app's own tokens, so the site reads as part of the product rather
   than a generic template. Zero third-party requests: no font CDN, no
   analytics, no framework. The only network cost beyond HTML and CSS is
   the images, which is what keeps the page fast without any tuning. */

@font-face {
  font-family: "Manrope";
  /* Subset of the app's own vendored Manrope (Latin plus punctuation),
     21 KB instead of 165 KB. Variable, so one file covers every weight;
     `wght` is set through font-variation-settings because font-weight
     alone does not reach inside a variable font. */
  src: url("assets/manrope-subset.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #0F0F12;
  --ground-2: #131317;
  --card: #17171B;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, .66);
  --ink-3: rgba(255, 255, 255, .40);
  --accent: #FFA62E;
  --accent-soft: rgba(255, 166, 46, .12);
  --ui: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --display: "Manrope", ui-rounded, ui-sans-serif, -apple-system, system-ui, sans-serif;
  --pad: 22px;
  --radius: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateY(-300%);
  background: var(--accent);
  color: var(--ground);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { transform: none; }

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Narrow measure for the prose pages (support, privacy). */
.wrap.prose { max-width: 680px; }

/* ---------- Type ---------- */

h1, h2, h3, .wordmark, .stat-n, .cta {
  font-family: var(--display);
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(38px, 6.4vw, 62px);
  line-height: 1.04;
  margin: 0 0 18px;
  font-variation-settings: "wght" 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.12;
  margin: 0 0 14px;
  font-variation-settings: "wght" 800;
  text-wrap: balance;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 8px;
  font-variation-settings: "wght" 700;
  letter-spacing: -.015em;
}

p { margin: 0 0 16px; color: var(--ink-2); }
li { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }

.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 26px;
  max-width: 46ch;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(15, 15, 18, .86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 17px;
  font-variation-settings: "wght" 800;
}
.wordmark:hover { text-decoration: none; }

.plate {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex: none;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: var(--ground);
}

.site-head nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.site-head nav a { color: var(--ink-2); }
.site-head nav a:hover { color: var(--ink); text-decoration: none; }

.site-head .cta.small { padding: 8px 15px; font-size: 14px; }

@media (max-width: 600px) {
  .site-head nav { gap: 14px; font-size: 14px; }
  .site-head .nav-hide { display: none; }
}

/* ---------- Buttons ---------- */

.cta {
  transition: transform .2s ease, filter .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #14140F;
  font-size: 17px;
  font-variation-settings: "wght" 800;
  letter-spacing: -.01em;
  padding: 15px 26px;
  border-radius: 13px;
  border: 0;
  text-align: center;
}
.cta:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }

.cta.small {
  font-size: 15px;
  padding: 10px 19px;
  border-radius: 10px;
}

.mini-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.cta-note {
  font-size: 14px;
  color: var(--ink-3);
  margin: 12px 0 0;
}

/* Pre-launch: the App Store link does not exist yet. One class on <body>
   swaps every call to action between the two states, so going live is a
   single edit rather than a hunt through the page. */
.live-only { display: none; }
body:not(.prelaunch) .live-only { display: inline-flex; }
body:not(.prelaunch) .soon-only { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(46px, 8vw, 92px) 0 clamp(40px, 6vw, 74px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -180px;
  top: -320px;
  background: radial-gradient(circle, rgba(255, 166, 46, .13), transparent 62%);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr auto;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  position: relative;
}

.hero .shot { width: 306px; margin-right: clamp(0px, 2vw, 28px); }

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .shot { justify-self: center; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Motion ----------
   Entrance keyframes for the hero, scroll reveals for everything below
   the fold. The .js gate matters: reveal targets start hidden ONLY when
   the class is set by script, so with JS off (or a crawler that does not
   run it) every element renders visible. */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero .copy > * { animation: rise .65s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero .copy > :nth-child(1) { animation-delay: .05s; }
.hero .copy > :nth-child(2) { animation-delay: .13s; }
.hero .copy > :nth-child(3) { animation-delay: .21s; }
.hero .copy > :nth-child(4) { animation-delay: .29s; }
.hero .shot {
  animation: rise .75s cubic-bezier(.2, .7, .2, 1) .2s backwards,
             float 7s ease-in-out 1.6s infinite;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Phone shots ---------- */

.shot {
  border-radius: 30px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--ground-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  width: 280px;
  max-width: 100%;
}
.shot img { width: 100%; }

/* ---------- Value strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ground-2);
}

.strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
}

@media (max-width: 720px) {
  .strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

.stat-n {
  display: block;
  font-size: 25px;
  font-variation-settings: "wght" 800;
  color: var(--ink);
  line-height: 1.2;
}
.stat-l {
  display: block;
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ---------- Feature rows ---------- */

.feature {
  padding: clamp(52px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

.feature .wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.feature .shot { transform: rotate(-1.8deg); transition: transform .45s ease; }
.feature.flip .shot { transform: rotate(1.8deg); }
.feature .shot:hover { transform: rotate(0); }

.feature.flip .wrap { grid-template-columns: 300px 1fr; }
.feature.flip .copy { order: 2; }
.feature.flip .shot { order: 1; }

@media (max-width: 800px) {
  .feature .wrap,
  .feature.flip .wrap { grid-template-columns: 1fr; }
  .feature .shot,
  .feature.flip .shot { order: 2; justify-self: center; }
  .feature.flip .copy { order: 1; }
}

.copy p:last-child { margin-bottom: 0; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  counter-increment: step;
  transition: transform .25s ease, border-color .25s ease;
}
.steps li:hover { transform: translateY(-4px); border-color: rgba(255, 166, 46, .35); }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--display);
  font-variation-settings: "wght" 800;
  font-size: 15px;
  margin-bottom: 12px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15px; }

/* ---------- Grid of small features ---------- */

.section { padding: clamp(52px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 46ch; margin-bottom: 8px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 166, 46, .35); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 15px; }

/* ---------- Price ---------- */

.price-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 46px);
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.price-n {
  font-family: var(--display);
  font-variation-settings: "wght" 800;
  font-size: clamp(46px, 8vw, 68px);
  line-height: 1;
  letter-spacing: -.03em;
  display: block;
  margin-bottom: 6px;
}
.price-card .lede { margin: 0 auto 22px; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  font-size: 15px;
  color: var(--ink-3);
}

.actions-center { justify-content: center; }

/* Scan-to-install. Desktop only (a phone taps the button instead) and
   live only (the QR encodes the App Store URL). */
.qr-box {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
@media (min-width: 800px) {
  body:not(.prelaunch) .qr-box { display: flex; }
}
.qr-box .qr {
  width: 132px;
  height: 132px;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 10px;
}
.qr-box .qr svg, .qr-box .qr img { width: 100%; height: 100%; display: block; }
.qr-box span { font-size: 13px; color: var(--ink-3); }

/* Pre-launch blocks (the waitlist form) follow the same switch as the
   inline CTAs, at block display. */
body:not(.prelaunch) .soon-block { display: none; }

.waitlist {
  max-width: 420px;
  margin: 6px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.waitlist .field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.waitlist input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  font-family: var(--ui);
  padding: 13px 15px;
}
.waitlist input::placeholder { color: var(--ink-3); }
.waitlist input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.waitlist .cta { width: 100%; }
.waitlist .cta:disabled { opacity: .6; }
.waitlist .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-status { font-size: 14px; color: var(--ink-2); margin: 0; min-height: 1em; }
.form-done {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  padding: 18px 0;
}
.waitlist .cta-note { text-align: center; }

.closing { padding: clamp(60px, 9vw, 108px) 0; text-align: center; }
.closing .wrap { max-width: 700px; }
.closing .lede { margin-left: auto; margin-right: auto; }

/* ---------- FAQ ---------- */

.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { color: var(--ink); }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-foot {
  padding: 44px 0 60px;
  color: var(--ink-3);
  font-size: 14px;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}
.site-foot .spacer { margin-left: auto; }
.site-foot a { color: var(--ink-2); }

/* ---------- Prose pages ---------- */

.prose h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 12px; }
.prose h2 { font-size: 21px; margin: 42px 0 10px; }
.prose h3 { font-size: 16px; margin: 26px 0 6px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 7px; }

.page-top { padding-top: 54px; }

.updated {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 36px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 34px;
}
.panel p:last-child { margin: 0; }

.faq {
  border-top: 1px solid var(--line);
  padding: 20px 0 4px;
}
.faq h3 { margin-top: 0; color: var(--ink); }
