/* ============================================================================
   HIRO — website styles.  Warm editorial / indie aesthetic, 1:1 with the app's
   brand: paper canvas, ember orange, Instrument Serif display, Space Grotesk
   body, Space Mono technical labels.  More social, less media.
   ========================================================================== */

:root {
  --paper:      #F1ECE3;   /* warm canvas (app --paper) */
  --paper-2:    #EAE3D6;   /* slightly deeper paper for panels */
  --ink:        #15120E;   /* warm near-black (app --ink) */
  --ink-soft:   #55504733; /* hairline */
  --mut:        #6B6459;   /* muted body */
  --orange:     #FF4D00;   /* HIRO accent */
  --orange-2:   #FF7733;
  --green:      #2FD27A;
  --purple:     #8B5CF6;
  --gold:       #E8B23A;
  --pink:       #EC409E;
  --yellow:     #F2C200;
  --blue:       #2F8FFF;

  --sans:  "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono:  "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1120px;
  --radius: 26px;
  --shadow: 0 30px 70px -30px rgba(21,18,14,.35), 0 8px 24px -12px rgba(21,18,14,.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Warm atmospheric background: layered sun glows over the paper. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 720px at 50% -8%, rgba(255,77,0,.16), transparent 60%),
    radial-gradient(760px 620px at 108% 12%, rgba(255,119,51,.10), transparent 62%),
    radial-gradient(900px 700px at -10% 42%, rgba(255,77,0,.06), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Typographic building blocks ---------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px 1px rgba(255,77,0,.6);
}
.eyebrow.mut { color: var(--mut); }
.eyebrow.mut::before { background: var(--mut); box-shadow: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.serif { font-family: var(--serif); }
.ital { font-style: italic; }
.o { color: var(--orange); }

.display {
  font-family: var(--serif);
  font-size: clamp(56px, 11vw, 132px);
  line-height: .92;
  letter-spacing: -.02em;
  margin: 0;
}
.h2 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  margin: 0 0 18px;
}
.lead {
  font-size: clamp(19px, 2.3vw, 23px);
  color: var(--mut);
  max-width: 46ch;
  margin: 0;
}

/* ---- Buttons / pills ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  transition: transform .25s cubic-bezier(.3,1.4,.5,1), box-shadow .25s, background .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(21,18,14,.5); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(255,77,0,.6); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn.ghost:hover { background: rgba(21,18,14,.05); box-shadow: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(21,18,14,.10);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

/* ---- Header ------------------------------------------------------------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(to bottom, rgba(241,236,227,.82), rgba(241,236,227,.5));
  border-bottom: 1px solid rgba(21,18,14,.07);
}
.nav-in { display: flex; align-items: center; justify-content: space-between;
  height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700;
  font-size: 21px; letter-spacing: .14em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--mut); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { padding: 10px 20px; font-size: 14.5px; }
@media (max-width: 760px) { .nav-links a.hide-sm { display: none; } }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; padding: clamp(46px, 9vw, 96px) 0 40px; text-align: center; }
.hero .sun {
  width: clamp(96px, 16vw, 150px); height: auto; margin: 0 auto 14px;
  filter: drop-shadow(0 18px 40px rgba(255,77,0,.35));
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { transform: scale(1) rotate(0deg); }
  50%     { transform: scale(1.05) rotate(1.5deg); }
}
.hero .wordmark {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(23px, 5vw, 44px); letter-spacing: .2em; text-indent: .2em;
  color: var(--ink); line-height: 1; margin: 4px 0 20px;
}
.hero .display { margin-top: 6px; }
.hero .sub {
  font-size: clamp(19px, 2.4vw, 24px); color: var(--mut);
  max-width: 30ch; margin: 24px auto 0; line-height: 1.45;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px; }
.hero .fineprint { margin-top: 16px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .05em; color: var(--mut); }

/* Floating photo cards behind/around the hero headline */
.hero-scatter { position: relative; margin-top: 54px; height: clamp(340px, 42vw, 520px); }
.hero-scatter .card {
  position: absolute; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--orange);
  animation: float 7s ease-in-out infinite;
}
.hero-scatter .card img { width: 100%; height: 100%; object-fit: cover; }
.hero-scatter .card.blue { border-color: var(--blue); }
.hero-scatter .card.green { border-color: var(--green); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---- Manifesto strip ---------------------------------------------------- */
.manifesto { padding: clamp(60px,9vw,110px) 0; text-align: center; }
.manifesto .big {
  font-family: var(--serif); font-size: clamp(30px, 5vw, 54px);
  line-height: 1.14; max-width: 20ch; margin: 22px auto 0; letter-spacing: -.01em;
}
.manifesto .big .mut { color: var(--mut); }

/* ---- Feature sections --------------------------------------------------- */
.feature { padding: clamp(52px, 7vw, 90px) 0; }
.feature .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 84px);
  align-items: center;
}
.feature.rev .grid { direction: rtl; }
.feature.rev .grid > * { direction: ltr; }
.feature .copy .h2 { margin-top: 14px; }
.feature .copy p { color: var(--mut); font-size: 19px; max-width: 42ch; }
.feature .tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(21,18,14,.12); color: var(--ink);
  background: rgba(255,255,255,.4);
}
.tag .dot { display:inline-block; width:8px;height:8px;border-radius:50%;
  margin-right:7px; vertical-align: 1px; }

/* Phone frame */
.phone {
  position: relative; margin: 0 auto; width: min(300px, 78%);
  border-radius: 44px; padding: 9px;
  background: linear-gradient(160deg, #201b15, #0c0a07);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.phone::after { /* soft warm glow behind the device */
  content:""; position:absolute; inset:-10% -14%; z-index:-1; border-radius:60px;
  background: radial-gradient(closest-side, rgba(255,77,0,.28), transparent 72%);
  filter: blur(8px);
}
.phone .screen { border-radius: 36px; overflow: hidden; aspect-ratio: 1320/2868;
  background:#000; }
.phone .screen img, .phone .screen video { width:100%; height:100%; object-fit: cover; }
.phone .notch {
  position:absolute; top:16px; left:50%; transform:translateX(-50%);
  width:34%; height:20px; border-radius:12px; background:#0b0908; z-index:3;
}
.feature.glow-green .phone::after { background: radial-gradient(closest-side, rgba(47,210,122,.30), transparent 72%); }
.feature.glow-purple .phone::after { background: radial-gradient(closest-side, rgba(139,92,246,.28), transparent 72%); }

/* ---- Privacy grid ------------------------------------------------------- */
.privacy-sec { padding: clamp(60px,8vw,100px) 0; }
.pcards { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top:38px; }
.pcard {
  background: rgba(255,255,255,.55); border:1px solid rgba(21,18,14,.09);
  border-radius: 20px; padding: 24px 22px; backdrop-filter: blur(6px);
}
.pcard .ic { width:40px;height:40px;border-radius:12px; display:grid;place-items:center;
  font-size:19px; margin-bottom:14px; color:#fff; }
.pcard h3 { font-family: var(--sans); font-weight:700; font-size:18px; margin:0 0 6px;
  letter-spacing: normal; }
.pcard p { margin:0; font-size:15.5px; color: var(--mut); line-height:1.5; }

/* ---- Feature mini-grid (extras) ---------------------------------------- */
.mini { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-top:40px; }
.mini .m { background: rgba(255,255,255,.45); border:1px solid rgba(21,18,14,.08);
  border-radius:18px; padding:20px; }
.mini .m .k { font-family: var(--mono); font-size:11px; letter-spacing:.14em;
  text-transform:uppercase; color: var(--orange); }
.mini .m h4 { font-family: var(--sans); font-weight:700; font-size:16.5px; margin:9px 0 5px; letter-spacing:normal;}
.mini .m p { margin:0; font-size:14px; color:var(--mut); line-height:1.45; }

/* ---- CTA / closing ------------------------------------------------------ */
.closing { text-align:center; padding: clamp(70px,10vw,130px) 0; position:relative; }
.closing .sun { width: 84px; margin:0 auto 22px; animation: breathe 5.5s ease-in-out infinite; }
.closing .big { font-family: var(--serif); font-size: clamp(46px,9vw,104px); line-height:.95;
  margin:0; letter-spacing:-.02em; }

/* ---- Footer ------------------------------------------------------------- */
footer { border-top: 1px solid rgba(21,18,14,.1); padding: 54px 0 60px;
  background: rgba(234,227,214,.5); }
.foot-in { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer .brand { margin-bottom: 14px; }
footer p.tag-line { color: var(--mut); font-size: 15px; max-width: 32ch; }
footer .col h5 { font-family: var(--mono); font-size:11.5px; letter-spacing:.16em;
  text-transform:uppercase; color: var(--mut); margin:0 0 14px; }
footer .col a { display:block; color: var(--ink); font-size:15px; margin-bottom:10px;
  opacity:.82; transition:opacity .2s; }
footer .col a:hover { opacity:1; }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top:1px solid rgba(21,18,14,.09);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-family:var(--mono); font-size:12px; letter-spacing:.03em; color: var(--mut); }

/* ---- Reveal on scroll (progressive enhancement) ------------------------- */
/* Visible by default — content NEVER depends on JS. Only when the page adds
   `js` to <html> do we hide-then-reveal on scroll. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---- Legal / document pages -------------------------------------------- */
.doc-head { padding: clamp(40px,7vw,72px) 0 8px; }
.doc-head .h2 { margin-bottom: 6px; }
.doc-head .back { font-family:var(--mono); font-size:13px; letter-spacing:.06em; color:var(--mut); }
.doc {
  max-width: 760px; margin: 0 auto; padding: 20px 24px 100px;
  font-size: 16.5px; line-height: 1.7; color: #2c2822;
}
.doc h1 { font-size: clamp(34px,6vw,52px); margin: 8px 0 10px; }
/* The page header already shows the title → hide the markdown's leading H1. */
.doc > h1:first-of-type { display: none; }
.doc h2 { font-family: var(--sans); font-weight:700; letter-spacing:normal;
  font-size: 24px; margin: 42px 0 12px; }
.doc h3 { font-family: var(--sans); font-weight:700; letter-spacing:normal;
  font-size: 18.5px; margin: 28px 0 8px; }
.doc p, .doc li { color: #3a352d; }
.doc a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc hr { border:none; border-top:1px solid rgba(21,18,14,.12); margin: 34px 0; }
.doc blockquote { border-left: 3px solid var(--orange); margin: 18px 0; padding: 4px 18px;
  color: var(--mut); background: rgba(255,255,255,.4); border-radius: 0 12px 12px 0; }
.doc code { font-family: var(--mono); font-size: 14px; background: rgba(21,18,14,.06);
  padding: 2px 6px; border-radius: 6px; }
.doc table { width:100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { border:1px solid rgba(21,18,14,.14); padding: 9px 12px; text-align:left; }
.doc th { background: rgba(21,18,14,.05); font-family: var(--sans); }

/* ---- Support page ------------------------------------------------------- */
.support-hero { text-align:center; padding: clamp(50px,8vw,90px) 0 20px; }
.faq { max-width: 760px; margin: 30px auto 0; }
.faq details {
  border:1px solid rgba(21,18,14,.1); border-radius: 16px; padding: 4px 20px;
  margin-bottom: 12px; background: rgba(255,255,255,.5);
}
.faq summary { cursor:pointer; font-weight:600; font-size:17px; padding: 16px 0; list-style:none;
  display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-family:var(--mono); color:var(--orange); font-size:22px; }
.faq details[open] summary::after { content:"–"; }
.faq details p { margin: 0 0 18px; color: var(--mut); font-size: 16px; }
.contact-card {
  max-width: 620px; margin: 40px auto 0; text-align:center;
  background: rgba(255,255,255,.6); border:1px solid rgba(21,18,14,.1);
  border-radius: var(--radius); padding: 40px 30px; box-shadow: var(--shadow);
}
.contact-card .big-mail { font-family:var(--serif); font-size: clamp(24px,4vw,34px);
  color: var(--orange); margin: 10px 0 4px; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .feature .grid, .foot-in { grid-template-columns: 1fr; gap: 30px; }
  .feature.rev .grid { direction: ltr; }
  .feature .copy { order: 1; }
  .feature .art { order: 2; }
  .pcards { grid-template-columns: 1fr; }
  .mini { grid-template-columns: 1fr 1fr; }
  .foot-in { gap: 26px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .mini { grid-template-columns: 1fr; }
  .foot-legal { justify-content: center; text-align:center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .sun, .closing .sun, .hero-scatter .card { animation: none; }
  .reveal { transition: none; opacity:1; transform:none; }
}
