/* Argo — argolabs.app
   Shared stylesheet for the marketing site.
   Type scale and palette mirror the iOS app: near-black ground, gold accent,
   serif display face for editorial weight. */

:root {
  --ink: #0a0a0a;
  --ink-raised: #101010;
  --paper: rgba(255, 255, 255, 0.94);
  --paper-soft: rgba(255, 255, 255, 0.62);
  --paper-faint: rgba(255, 255, 255, 0.42);
  --gold: #c9a84c;
  --gold-bright: #f0dfa8;
  --gold-deep: #9a7c2c;
  --rule: rgba(255, 255, 255, 0.11);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;

  --measure: 1120px;
  --gutter: clamp(24px, 6vw, 72px);
}

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

html { -webkit-text-size-adjust: 100%; }

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

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small caps eyebrow — the site's recurring editorial signal. */
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0;
}

/* ---------- Masthead ---------- */

/* The bar carries a faint warm wash rather than a gold fill — enough to read as gilded
   against the near-black page without competing with the display type. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.015)),
    rgba(10, 10, 10, 0.86);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
}

/* Gradient hairline: gold at the centre, fading to nothing at both edges, so the bar
   sits on a lit rule instead of a hard border. */
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 168, 76, 0.15) 18%,
    rgba(201, 168, 76, 0.55) 50%,
    rgba(201, 168, 76, 0.15) 82%,
    transparent
  );
}

.masthead-inner {
  padding-block: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

/* The current icon has a light gold ground, so it already separates from the dark bar — no
   stroke needed. (Restore a 1px rgba(212,175,55,0.25) border if the artwork ever goes dark
   again, or the corners will bleed into the header.) */
.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

/* Gold gradient pill — the page's one loud element, so it stays scarce: the nav, the hero,
   and the modal submit. Dark text on gold, never gold text on gold. */
.btn-primary,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 46%, var(--gold-deep));
  color: #14100a;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 6px 20px rgba(201, 168, 76, 0.14);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover,
.nav-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.34) inset, 0 8px 26px rgba(201, 168, 76, 0.22);
}

.btn-primary:active,
.nav-cta:active { transform: translateY(1px); }

.btn-primary[disabled] { opacity: 0.55; cursor: default; filter: none; }

.nav-cta {
  padding: 9px 17px;
  font-size: 11px;
}

.btn-primary {
  padding: 13px 26px;
  font-size: 12px;
}

/* Text-only trigger used inside running copy. */
.link-cta {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--gold);
  cursor: pointer;
  border-bottom: 1px solid rgba(201, 168, 76, 0.45);
}

.link-cta:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* In the hero the note sits beside the button, so it drops its own rule. */
.hero-actions .cta-note { margin: 0; padding-top: 0; border-top: 0; }

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

.hero {
  padding-top: clamp(24px, 3.5vw, 44px);
  padding-bottom: clamp(22px, 3vw, 34px);
}

.hero h1 {
  font-size: clamp(42px, 7.6vw, 82px);
  max-width: 13ch;
  margin-top: 18px;
}

.hero .lede {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--paper-soft);
}

/* Status marker, not a button — there is no App Store listing to link to yet.
   Swap this <p> for an <a class="cta-live"> plus a badge image at launch. */
.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-soft);
}

.cta-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- Tour (screenshots + copy) ---------- */

/* One alternating section replaces the old separate feature list and screenshot showcase —
   with real screenshots, two three-item sections said the same thing twice. */
.tour {
  padding-block: clamp(26px, 4vw, 46px);
  border-top: 1px solid var(--rule);
}

.tour > .eyebrow { margin-bottom: clamp(6px, 1.4vw, 14px); }

.tour-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tour;
}

.tour-item {
  counter-increment: tour;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 72px);
  padding-block: clamp(30px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}

.tour-item:first-child { border-top: 0; }

/* Alternate the image side so the eye zig-zags down the page instead of marching. */
.tour-item:nth-child(even) > .device { order: 2; }

.tour-copy { max-width: 44ch; }

/* The number is a quiet editorial marker, not a list bullet. */
.tour-copy::before {
  content: counter(tour, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 14px;
}

.tour-copy h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0;
}

.tour-copy p {
  margin: 14px 0 0;
  font-size: clamp(16px, 1.7vw, 18px);
  color: var(--paper-soft);
}

/* Device frame — a thin bezel around the screenshot, capped so a tall phone shot never
   dominates the row. */
.device { margin: 0; }

.device-slot {
  max-width: 300px;
  margin-inline: auto;
  border: 1px solid var(--rule);
  border-radius: 34px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201, 168, 76, 0.09), transparent 62%),
    var(--ink-raised);
  padding: 7px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.device-slot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

/* ---------- Closing ---------- */

.closing {
  padding-block: clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.closing h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.014em;
  margin: 14px auto 0;
  max-width: 18ch;
}

.closing p {
  margin: 16px auto 0;
  max-width: 44ch;
  color: var(--paper-soft);
}

.closing .cta-note { margin-top: 28px; }

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 20px 26px;
  font-size: 13.5px;
  color: var(--paper-faint);
}

.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.site-footer a {
  color: var(--paper-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-footer a:hover { color: var(--paper); border-bottom-color: var(--gold); }

/* ---------- Document pages (privacy / terms / support) ---------- */

.doc {
  padding-top: clamp(20px, 2.5vw, 28px);
  padding-bottom: clamp(28px, 3.5vw, 40px);
  max-width: 72ch;
}

.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.8vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 12px 0 0;
}

.doc .updated {
  margin: 12px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.doc .intro {
  margin: 20px 0 0;
  font-size: 19px;
  color: var(--paper-soft);
}

.doc section {
  margin-top: clamp(26px, 3.2vw, 34px);
  padding-top: clamp(22px, 2.8vw, 28px);
  border-top: 1px solid var(--rule);
}

.doc h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.2;
  margin: 0 0 14px;
}

.doc h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 26px 0 8px;
}

.doc p, .doc li { color: var(--paper-soft); }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 1.15em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--gold); }

.doc a { color: var(--paper); text-decoration-color: var(--gold); text-underline-offset: 3px; }

.doc .back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
  text-decoration: none;
}

.doc .back:hover { color: var(--gold); }

/* When the return link trails the copy (404), it needs the space above instead. */
.doc p + .back { margin-top: 28px; margin-bottom: 0; }

/* Editorial note marking copy that must be replaced before launch.
   Delete the element entirely once final copy lands. */
.placeholder-note {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 168, 76, 0.05);
  font-size: 14px;
  color: var(--paper-soft);
}

/* ---------- Waitlist modal ---------- */

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

/* MUST come with the [hidden] rule below: an author `display` declaration overrides the
   UA stylesheet's [hidden] { display: none }, which would leave this full-viewport overlay
   laid out and eating every click on the page even at opacity 0. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 4, 4, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Restores what the `hidden` attribute is supposed to do. Without this the page is
   completely unclickable. */
.modal[hidden] { display: none; }

.modal.is-open { opacity: 1; }

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 34px 32px 30px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201, 168, 76, 0.10), transparent 60%),
    #0e0e0e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.modal.is-open .modal-panel { transform: none; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--paper-faint);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.modal-close:hover { color: var(--paper); }

.modal-panel h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 12px 0 0;
}

.modal-lede {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--paper-soft);
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.modal input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
}

.modal input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.32); }

.modal input[type="email"]:focus {
  outline: none;
  border-color: rgba(201, 168, 76, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.form-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 13.5px;
  color: var(--paper-soft);
}

.form-status.is-error { color: #e5836b; }
.form-status.is-success { color: var(--gold-bright); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .tour-item { gap: clamp(20px, 4vw, 40px); }
  .device-slot { max-width: 240px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-cta { padding: 7px 13px; letter-spacing: 0.1em; }
  /* Stack: copy first so the reader gets the point before the picture. */
  .tour-item { grid-template-columns: 1fr; gap: 22px; }
  .tour-item > .device, .tour-item:nth-child(even) > .device { order: 2; }
  .device-slot { max-width: 260px; }
  .site-footer .row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

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