/* HackerWire — editorial stylesheet */

:root {
  --paper: #fafaf7;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3a;
  --ink-mute: #6b6b66;
  --rule: #1a1a1a;
  --hair: rgba(26, 26, 26, 0.14);
  --hair-strong: rgba(26, 26, 26, 0.28);
  --orange: #ff6600;
  --tint: #f2f1ec;

  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --page-max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0e0e;
    --ink: #ededea;
    --ink-soft: #c4c4bf;
    --ink-mute: #8a8a84;
    --rule: #ededea;
    --hair: rgba(237, 237, 234, 0.16);
    --hair-strong: rgba(237, 237, 234, 0.32);
    --tint: #181817;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
#features, #pro { scroll-margin-top: 80px; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--hair-strong);
  transition: text-decoration-color 120ms ease, color 120ms ease;
}
a:hover { text-decoration-color: var(--orange); color: var(--orange); }

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

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

.masthead {
  border-bottom: 1px solid var(--ink);
  padding: 18px 0 16px;
  background: var(--paper);
}
.masthead .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.wordmark .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 0;
  transform: translateY(-1px);
}
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wordmark:hover .dot { background: var(--orange); }

.mast-nav {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  gap: 22px;
}
.mast-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.mast-nav a:hover { color: var(--orange); }

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

.colophon-foot {
  border-top: 1px solid var(--ink);
  margin-top: 96px;
  padding: 36px 0 44px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
}
.colophon-foot .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px 32px;
}
.colophon-foot .foot-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.colophon-foot a { color: var(--ink-soft); text-decoration: none; }
.colophon-foot a:hover { color: var(--orange); }
.colophon-foot .foot-mark {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
}

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

.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--hair);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.issue-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.issue-line .num {
  color: var(--orange);
  font-weight: 600;
}
.issue-line .sep {
  width: 24px;
  height: 1px;
  background: var(--hair-strong);
  display: inline-block;
}

h1.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-wrap: balance;
}
h1.headline em {
  font-style: italic;
  color: var(--ink-soft);
}

.standfirst {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 14px 24px 14px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: background 120ms ease;
}
.btn-app:hover {
  background: var(--orange);
  color: #fff;
  text-decoration: none;
}
.btn-app .glyph {
  font-size: 18px;
  line-height: 1;
}
.btn-app small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 3px;
  font-weight: 400;
}

.cta-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* iPhone 17 Pro Max shell */

.device {
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 1206 / 2622;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35))
          drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}
.device-bezel {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #4a4a4a 0%, #2a2a2a 50%, #1a1a1a 100%);
  border-radius: 13.5%/6.2%;
  padding: 2.6%;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 3px #0a0a0a;
}
.device-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 11%/5.1%;
  background: #000;
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.device-island {
  position: absolute;
  top: 1.8%;
  left: 50%;
  transform: translateX(-50%);
  width: 31%;
  height: 3.8%;
  background: #000;
  border-radius: 999px;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ---------- Intro ---------- */

.intro {
  padding: 72px 0 32px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  display: inline-block;
}
.intro p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.012em;
  text-wrap: pretty;
  color: var(--ink);
}
.intro p::first-letter {
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1;
}

/* ---------- Features (editorial blocks) ---------- */

.features {
  padding: 72px 0 32px;
  border-top: 1px solid var(--ink);
}
.features-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.features-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  font-weight: 400;
  margin: 0;
  max-width: 18ch;
}
.features-head .count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.feature {
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 36px 0;
  border-top: 1px solid var(--hair);
  align-items: center;
}
.feature:first-of-type { border-top: 1px solid var(--hair-strong); }

.feature .num {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.02em;
  font-feature-settings: "lnum";
}
.feature h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.feature h3 em {
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 400;
}
.feature .copy {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
  text-wrap: pretty;
}
.feature .copy .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Pro section ---------- */

.pro {
  padding: 96px 0 72px;
  margin-top: 40px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.pro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.pro-lede .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 20px;
}
.pro-lede h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 24px;
}
.pro-lede h2 em { font-style: italic; color: var(--ink-soft); }
.pro-lede p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 28px;
}
.pro-lede .btn-app {
  padding: 16px 40px 16px 38px;
  min-width: 280px;
  justify-content: center;
}

.price-card {
  border: 1px solid var(--ink);
  padding: 28px 28px 24px;
  background: var(--paper);
  position: relative;
}
.price-card + .price-card { margin-top: 16px; }
.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-card.featured .plan-sub,
.price-card.featured .plan-label { color: rgba(250, 250, 247, 0.65); }

@media (prefers-color-scheme: dark) {
  .price-card.featured { background: var(--orange); color: #fff; border-color: var(--orange); }
  .price-card.featured .plan-sub,
  .price-card.featured .plan-label { color: rgba(255, 255, 255, 0.78); }
}

.plan-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.plan-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.plan-save {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 3px 8px;
}
.price-card.featured .plan-save { color: #fff; border-color: rgba(255,255,255,0.5); }
.plan-price {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 10px 0 4px;
}
.plan-price .per {
  font-size: 16px;
  font-family: var(--serif);
  color: var(--ink-mute);
  font-style: italic;
}
.price-card.featured .plan-price .per { color: rgba(250,250,247,0.7); }
.plan-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 28px 0 24px;
}
.benefits li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--hair);
  position: relative;
  color: var(--ink);
}
.benefits li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-family: var(--mono);
}
.benefits li:last-child { border-bottom: 0; }

.renewal-note {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 20px 0 0;
  max-width: 48ch;
}

/* ---------- Colophon ---------- */

.colophon {
  padding: 80px 0 48px;
  text-align: left;
}
.colophon-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.colophon h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.colophon h2 em { font-style: italic; color: var(--ink-soft); }
.colophon .disclaim {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 24px 0 0;
  max-width: 44ch;
  line-height: 1.5;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 72px 0 48px;
}
.legal-header {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 28px;
  margin-bottom: 48px;
}
.legal-header .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 16px;
}
.legal-header h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 12px;
}
.legal-header .effective {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}

.legal-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.legal-body .toc {
  position: sticky;
  top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.9;
}
.legal-body .toc a {
  display: block;
  color: var(--ink-mute);
  text-decoration: none;
}
.legal-body .toc a:hover { color: var(--orange); }
.legal-body .toc .toc-label {
  color: var(--ink-mute);
  margin-bottom: 14px;
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
}

.legal-body article {
  max-width: 64ch;
}
.legal-body article section {
  padding: 24px 0 8px;
  border-top: 1px solid var(--hair);
}
.legal-body article section:first-child { border-top: 0; padding-top: 0; }
.legal-body article h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  font-weight: 500;
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-body article h2 .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.1em;
  font-weight: 400;
  width: 28px;
  flex: none;
}
.legal-body article h3 {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--ink);
}
.legal-body article p,
.legal-body article li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.legal-body article strong { color: var(--ink); font-weight: 600; }
.legal-body article ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}
.legal-body article ul li { margin-bottom: 8px; }
.legal-body article a { color: var(--ink); text-decoration-color: var(--orange); }

.legal-body article dl {
  margin: 4px 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.legal-body article dl .row {
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}
.legal-body article dl .row:first-child { border-top: 0; padding-top: 4px; }
.legal-body article dl dt {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.legal-body article dl dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

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

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero { padding: 48px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .device { max-width: 260px; }
  .intro { padding: 56px 0 24px; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .features { padding: 56px 0 24px; }
  .feature {
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 28px 0;
  }
  .feature .copy { grid-column: 2; max-width: none; }
  .feature .num { font-size: 36px; }
  .pro { padding: 64px 0 56px; }
  .pro-grid { grid-template-columns: 1fr; gap: 32px; }
  .colophon { padding: 56px 0 32px; }
  .colophon-inner { grid-template-columns: 1fr; gap: 20px; }
  .legal { padding: 48px 0 32px; }
  .legal-body { grid-template-columns: 1fr; gap: 32px; }
  .legal-body .toc { position: static; }
  .masthead .container { flex-direction: row; align-items: center; }
  .mast-nav { gap: 14px; font-size: 11px; }
  .colophon-foot { margin-top: 64px; }
  .colophon-foot .container { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 480px) {
  .mast-nav .hide-sm { display: none; }
  h1.headline { font-size: 44px; }
  .plan-price { font-size: 36px; }
}
