/* Actor Desk — shared styles */

:root {
  --ink: #17171b;
  --paper: #efeee9;
  --paper-deep: #e6e4dd;
  --card: #ffffff;
  --rule: #d8d5cc;
  --muted: #6b6862;
  --indigo: #2b2e82;
  --indigo-deep: #232766;
  --key: #5d5d67;
  --on-hero-muted: #bfc4ee;
  --amber-fill: #6b4a0f;
  --amber-text: #ffd24a;
  --green-fill: #175e36;
  --green-text: #6ee7a0;

  --display: "Archivo", system-ui, sans-serif;
  --mono: "Courier Prime", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* ---------- utility type: the script-page vernacular ---------- */

.slug {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* section divider set like a screenplay scene heading */
.scene {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.5rem;
  border-top: 1px solid var(--ink);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.scene::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---------- header ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}
.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.wordmark img {
  display: block;
  height: 26px;
  width: auto;
}
/* The mark alone stands in for the lockup on narrow screens — see the 600px
   breakpoint. The full lockup is ~164px wide and crowds the nav off the line. */
.wordmark .mark { display: none; }
.masthead nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}
.masthead nav a {
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}
.masthead nav a:hover { color: var(--ink); }
.masthead nav a.here { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  /* the top figure was set for a two-column hero; the stacked one sits higher */
  padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(3rem, 7vw, 5.5rem);
}
/* The phone column is exactly as wide as the phone, and that width is capped by
   viewport height — 34vh of width is ~74vh of phone, so the hero clears the
   fold on a laptop instead of running past it. */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(34vh, 290px);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 1.25rem 0 0;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--indigo);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 40ch;
  margin: 1.5rem 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--indigo); transform: translateY(-1px); }

/* The App Store badge is supplied artwork, so it gets a size and nothing else:
   no recolouring, no filter, no background, no hover transform, no distortion.
   Width is left to follow the badge's own 119.66407 x 40 ratio from its height. */
.badge {
  --badge-height: clamp(48px, 5.5vw, 60px);
  display: inline-block;
  line-height: 0;
  /* Apple asks for clear space of at least 10% of the badge height on every
     side. The page gutter and .cta-row's top margin already exceed that to the
     left and above; this reserves it to the right and below. */
  margin: 0 calc(var(--badge-height) * 0.1) calc(var(--badge-height) * 0.1) 0;
}
.badge img {
  display: block;
  height: var(--badge-height);
  width: auto;
  aspect-ratio: 119.66407 / 40;
}
/* the shared focus ring sets border-radius: 4px on every link; follow the
   badge's own corner instead, which is ~17% of its height */
.badge:focus-visible { border-radius: calc(var(--badge-height) * 0.17); }

/* ---------- the screenshots ---------- */

/* The two-up band below the hero. The frame is a thin ink band — no fake
   hardware beyond the island and the side buttons, the screen does the talking. */
.shots {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
}
.shot { width: min(290px, 44%); margin: 0; }
.shot figcaption { display: block; margin-top: 1.1rem; }

/* The bezel is thin and heavily rounded — roughly the 0.14-of-the-width corner
   ratio a real iPhone has. The band is solid ink through the middle and lifts
   toward white at opposite corners, so light appears to catch the edge. */
.device {
  position: relative;
  padding: clamp(3px, 0.45vw, 5px);
  border-radius: clamp(28px, 4.4vw, 46px);
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--ink) 45%, #fff) 0%,
    color-mix(in srgb, var(--ink) 88%, #fff) 12%,
    var(--ink) 34%,
    var(--ink) 64%,
    color-mix(in srgb, var(--ink) 84%, #fff) 88%,
    color-mix(in srgb, var(--ink) 52%, #fff) 100%);
  box-shadow:
    0 0 0 1px rgba(23, 23, 27, 0.45),
    0 30px 58px -30px rgba(23, 23, 27, 0.62);
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(24px, 3.9vw, 41px);
}
/* the glint along the band's top and bottom edges */
.device::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}
/* The Dynamic Island at Apple's proportions: 126 x 37.3pt on a 393 x 852pt
   screen, 11pt down. It lands in the gap the status bar leaves for it. */
.island {
  position: absolute;
  top: calc(clamp(3px, 0.45vw, 5px) + 1.25%);
  left: 50%;
  transform: translateX(-50%);
  width: 31.5%;
  aspect-ratio: 126 / 37.3;
  background: #000;
  border-radius: 999px;
  pointer-events: none;
}

/* Side buttons. The left rail is one strip painting three bars — action, volume
   up, volume down; the right is the side button. Both stand slightly proud of
   the band. Sized in percentages so they scale with the phone, not the page. */
.keys { position: absolute; inset: 0; pointer-events: none; }
.keys::before,
.keys::after {
  content: "";
  position: absolute;
  width: max(1.6px, 1.35%);
  border-radius: 1px;
}
.keys::before {
  left: calc(max(1.6px, 1.35%) * -0.55);
  top: 16%;
  height: 17.8%;
  background: linear-gradient(to bottom,
    var(--key) 0 16.9%, transparent 16.9% 28.1%,
    var(--key) 28.1% 59.6%, transparent 59.6% 68.5%,
    var(--key) 68.5% 100%);
}
.keys::after {
  right: calc(max(1.6px, 1.35%) * -0.55);
  top: 22%;
  height: 10%;
  background: var(--key);
}

/* where the glass meets the band */
.device::after {
  content: "";
  position: absolute;
  inset: clamp(3px, 0.45vw, 5px);
  border-radius: clamp(24px, 3.9vw, 41px);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* agents.png carries a strip of list content below the tab bar, left over from
   the scroll position when it was taken. That strip is plain white in the app,
   so paint over it — cropping the frame cut into the tab bar. The glass overlay
   below already matches the screen's box and rounding, so it does the masking. */
.device--crop::after {
  background: linear-gradient(to top, #fff 0 2.6%, transparent 2.6%);
}

/* the single screen lower down — same size cap as the pair above it */
.showcase .wrap {
  display: grid;
  grid-template-columns: min(290px, 38%) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.showcase-copy p { color: var(--muted); margin: 0; max-width: 46ch; }
.showcase-copy .slug { display: block; margin-bottom: 0.9rem; }

/* ---------- sections ---------- */

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section.tinted { background: var(--paper-deep); }

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.tier-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}
.tier-head h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.025em; }

ul.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
ul.features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}
ul.features li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--indigo);
  margin-top: 0.62rem;
}
ul.features strong { font-weight: 700; letter-spacing: -0.01em; }
ul.features span { color: var(--muted); display: block; font-size: 0.97rem; }

/* principles */
.principles { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principle p { color: var(--muted); margin: 0; font-size: 0.99rem; }
.principle .n {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  color: var(--indigo);
  display: block;
  margin-bottom: 0.9rem;
}

/* the quiet statement */
.statement {
  background: var(--ink);
  color: var(--paper);
}
.statement p {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
  max-width: 24ch;
  margin: 1.25rem 0 0;
  text-wrap: balance;
}
.statement .slug { color: #8b877f; }
.statement .after {
  font-size: 1rem;
  font-weight: 400;
  color: #a8a49c;
  max-width: 46ch;
  letter-spacing: 0;
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.price {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
}
.price .amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 0.2rem;
}
.price .per { font-family: var(--mono); font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price p { color: var(--muted); font-size: 0.95rem; margin: 0.9rem 0 0; }
.fineprint { color: var(--muted); font-size: 0.88rem; margin-top: 1.75rem; max-width: 62ch; }

/* ---------- prose pages ---------- */

.prose { max-width: 68ch; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.035em; font-weight: 800; margin: 1rem 0 0.5rem; line-height: 1.05; }
.prose h2 { font-size: 1.22rem; margin: 2.75rem 0 0.75rem; letter-spacing: -0.02em; }
.prose p { margin: 0 0 1.1rem; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.prose a { color: var(--indigo); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--ink);
  padding-block: 2rem 3rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a {
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; justify-items: start; }
  .hero .device { width: min(290px, 62%); }
  .showcase .wrap { grid-template-columns: 1fr; }
  .showcase .device { max-width: 300px; }
  .cols { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shots { gap: 1rem; }
  .shot { width: 47%; }
  .wordmark .lockup { display: none; }
  .wordmark .mark { display: block; height: 22px; }
  .masthead nav { gap: 0.7rem; }
  .masthead nav a { font-size: 0.82rem; letter-spacing: 0.04em; }
}

/* ---------- motion ---------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }

:where(a, button):focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
