/* Roomy site: the app's own look. Paper, ink, one orange. Archivo for words, DM Mono for labels. */
@font-face { font-family: "Archivo Condensed"; src: url("/fonts/Archivo-CondensedExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F1F2F0;
  --ink: #101210;
  --quiet: #5C605C;
  --out: #F0420F;
  --out-text: #C7330A;
  --on-out: #101210;
  --line: rgba(16, 18, 16, 0.14);
  --tint: rgba(16, 18, 16, 0.06);
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101210;
    --ink: #F1F2F0;
    --quiet: #A3A8A3;
    --out: #FF5A2B;
    --out-text: #FF5A2B;
    --line: rgba(241, 242, 240, 0.16);
    --tint: rgba(241, 242, 240, 0.07);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 "Archivo", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Type */
.display {
  font-family: "Archivo Condensed", "Archivo", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 0;
}
.mono, .label {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label { color: var(--quiet); }
.out { color: var(--out-text); }
p { margin: 0 0 1em; }
.lead { font-size: 20px; line-height: 1.45; max-width: 36em; }
.quiet { color: var(--quiet); }

/* Header */
header.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { font-family: "Archivo Condensed", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 0.02em; }
nav.links { display: flex; gap: 22px; }
nav.links a { text-decoration: none; padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
nav.links a:hover, nav.links a[aria-current] { border-bottom-color: var(--ink); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(64px, 12vw, 148px); }
.hero .lead { margin-top: 24px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 56px; padding: 0 22px; border-radius: 4px; text-decoration: none;
  font-family: "Archivo Condensed", sans-serif; font-weight: 800; font-size: 22px; text-transform: uppercase;
  border: 1.5px solid var(--ink);
}
.btn.primary { background: var(--out); color: var(--on-out); border-color: var(--out); }
.btn .arrow { font-family: "Archivo", sans-serif; font-weight: 400; font-size: 26px; }

/* The plan: a floor plan of a disk, like the app's */
.plan { border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; aspect-ratio: 5 / 4; display: grid; grid-template-rows: 1fr 1fr; }
.plan .row { display: flex; }
.plan .row + .row { border-top: 1.5px solid var(--ink); }
.room { position: relative; padding: 10px; border-right: 1.5px solid var(--ink); font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; overflow: hidden; }
.room:last-child { border-right: 0; }
.room.kept { background: var(--tint); }
.room.clear { background: var(--out); color: var(--on-out); }
.room.review { background: repeating-linear-gradient(135deg, var(--out) 0 1.5px, transparent 1.5px 9px); }
.room.review span { background: var(--paper); padding: 2px 5px; border-radius: 2px; }
.room b { position: absolute; left: 10px; bottom: 8px; font-family: "Archivo Condensed", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) {
  .room.clear, .room.review { animation: wipe 0.9s cubic-bezier(0.2, 0.9, 0.1, 1) both; }
  .row:first-child .room:nth-child(2) { animation-delay: 0.25s; }
  .row:first-child .room:nth-child(3) { animation-delay: 0.35s; }
  .row:last-child .room:nth-child(1) { animation-delay: 0.45s; }
  .row:last-child .room:nth-child(3) { animation-delay: 0.55s; }
  @keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}
.legend { display: flex; gap: 18px; margin-top: 12px; }
.legend i { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin-right: 6px; background: var(--out); }
.legend i.h { background: repeating-linear-gradient(135deg, var(--out) 0 1.5px, transparent 1.5px 4px); outline: 1px solid var(--out); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(44px, 7vw, 84px); margin-bottom: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.rule { border-top: 1.5px solid var(--ink); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li::before { content: ""; width: 11px; height: 11px; margin-top: 7px; background: var(--out); border-radius: 1px; }
.list li.h::before { background: repeating-linear-gradient(135deg, var(--out) 0 1.5px, transparent 1.5px 4px); outline: 1px solid var(--out); }
.list li.k::before { background: var(--tint); outline: 1px solid var(--ink); }
.list strong { font-weight: 600; display: block; }
.list span { color: var(--quiet); }

/* Screens */
.phones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 36px; }
.phones img, .mac img { border-radius: 14px; border: 1px solid var(--line); background: var(--tint); }
.mac { margin-top: 36px; }
.mac img { border-radius: 10px; }
figure { margin: 0; }
figcaption { margin-top: 10px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 32px; }
.card { position: relative; border: 1.5px solid var(--ink); border-radius: 4px; padding: 24px; }
.card.ink { background: var(--ink); color: var(--paper); }
.card.ink .quiet { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.card h3 { font-size: 40px; margin-bottom: 6px; }
.card .price { font-family: "DM Mono", monospace; font-size: 22px; line-height: 1.35; margin: 18px 0 14px; }
.card .price span { font-size: 15px; }
.badge { position: absolute; top: -12px; right: 16px; background: var(--out); color: var(--on-out); font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; }
.card ul { margin: 0; padding-left: 18px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: "DM Mono", monospace; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--quiet); max-width: 52em; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(56px, 10vw, 112px); margin-bottom: 14px; }
.legal .doc { max-width: 46em; margin-top: 36px; }
.legal h2 { font-family: "Archivo Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 44px 0 12px; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.legal h3 { font-size: 18px; margin: 24px 0 6px; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-family: "DM Mono", monospace; font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }

/* Footer */
footer { border-top: 1.5px solid var(--ink); padding: 32px 0 48px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero .grid, .two { grid-template-columns: 1fr; gap: 32px; }
  .phones { grid-template-columns: repeat(3, 1fr); }
  .phones figure:nth-child(n+4) { display: none; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  nav.links { gap: 14px; }
  nav.links .opt { display: none; }
  .hero { padding-top: 40px; }
  section { padding: 56px 0; }
  .phones { grid-template-columns: repeat(2, 1fr); }
  .phones figure:nth-child(n+3) { display: none; }
}
