/* Recorda site. One family (Archivo, variable width) on equipment grey; the app is the only dark object. */
:root {
  --paper: #e6e8e9;
  --panel: #f3f4f4;
  --ink: #15191c;
  --mute: #566068;
  --rule: #c2c8cc;
  --rec: #de241b;
  --rec-deep: #b81a13;
  --device: #060708;
  --ok: #1d7f45;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 Archivo, system-ui, sans-serif; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2rem, 74rem); margin-inline: auto; }

/* colour bars: the one piece of decoration, straight from the test pattern */
.bars { height: 6px; background: linear-gradient(90deg, #c0c0c0 0 14.28%, #c0c000 0 28.57%, #00c0c0 0 42.85%, #00c000 0 57.14%, #c000c0 0 71.42%, #c00000 0 85.71%, #0000c0 0); }

/* header */
.top { display: flex; align-items: center; gap: 2rem; padding: 1.4rem 0; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-stretch: 125%; font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none; }
.logo i { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--rec); }
.top nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: 0.98rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.rec { background: var(--rec); border-color: var(--rec); color: #fff; }
.btn.rec::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #fff; }
.btn.rec:hover { background: var(--rec-deep); border-color: var(--rec-deep); color: #fff; }
.btn.small { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* hero */
.hero { padding: 3.5rem 0 0; }
h1 { margin: 0; font-weight: 800; font-stretch: 125%; font-size: clamp(2.5rem, 7.2vw, 6.1rem); line-height: 0.97; letter-spacing: -0.025em; max-width: 15ch; text-wrap: balance; }
.lede { margin: 1.8rem 0 0; max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--mute); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.2rem; }
.cta p { margin: 0; color: var(--mute); font-size: 0.98rem; max-width: 30ch; line-height: 1.35; }
.device { margin: 3.5rem 0 0; padding: clamp(6px, 1vw, 12px); background: var(--device); border-radius: clamp(10px, 1.6vw, 20px); box-shadow: 0 40px 70px -40px rgba(10, 14, 18, 0.55); position: relative; }
.device img { width: 100%; height: auto; border-radius: clamp(5px, 0.9vw, 10px); }
.device figcaption { position: absolute; left: 0; top: calc(100% + 0.8rem); font-size: 0.92rem; color: var(--mute); }

/* sections */
section { padding: clamp(4.5rem, 9vw, 8rem) 0 0; }
h2 { margin: 0 0 2.2rem; font-weight: 750; font-stretch: 118%; font-size: clamp(1.8rem, 3.8vw, 3.1rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance; }

/* spec sheet */
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: 15rem 1fr; gap: 0.4rem 2rem; padding: 1.35rem 0; border-top: 1px solid var(--rule); }
.spec div:last-child { border-bottom: 1px solid var(--rule); }
.spec dt { font-weight: 700; font-stretch: 112%; font-size: 1.12rem; }
.spec dd { margin: 0; max-width: 64ch; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; background: var(--device); color: #eef0f1; border-radius: 20px; overflow: hidden; }
.plans > div { padding: clamp(1.6rem, 3.5vw, 3rem); }
.plans > div + div { border-left: 1px solid #2a3035; }
.plans h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: #a9b2b8; }
.plans .big { margin: 0.4rem 0 1.4rem; font-weight: 800; font-stretch: 125%; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.02em; }
.plans ul { margin: 0; padding: 0; list-style: none; }
.plans li { padding: 0.75rem 0; border-top: 1px solid #2a3035; }
.plans li.limit { color: #ffb4ae; }
.plans .btn { margin-top: 1.8rem; border-color: #eef0f1; color: #eef0f1; }
.plans .btn:hover { background: #eef0f1; color: var(--device); }
.plans .btn.rec { border-color: var(--rec); }
.plans .btn.rec:hover { background: var(--rec-deep); color: #fff; }
.after { margin: 1.4rem 0 0; color: var(--mute); max-width: 68ch; }

/* questions */
.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.25rem 2rem 1.25rem 0; font-weight: 650; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 1rem; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.4rem; max-width: 66ch; color: var(--mute); }

/* footer */
footer { margin-top: clamp(4.5rem, 9vw, 8rem); padding: 2rem 0 3rem; border-top: 1px solid var(--rule); color: var(--mute); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
footer p { margin: 0; }
footer .share { flex-basis: 100%; }
footer .share a { margin-left: 0.6rem; }

/* notices */
.notice { margin: 0 0 1.5rem; padding: 0.9rem 1.2rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--rule); }
.notice.good { border-color: var(--ok); color: #0f5a2e; background: #e4f1e8; }
.notice.bad { border-color: var(--rec); color: #8f1610; background: #f8e3e1; }

/* account page */
.acct { padding: 2.5rem 0 0; max-width: 46rem; }
.acct h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: none; }
.who { display: flex; align-items: center; gap: 0.9rem; margin: 1.2rem 0 2.5rem; color: var(--mute); }
.who img { width: 2.4rem; height: 2.4rem; border-radius: 50%; }
.step { padding: 1.8rem 0; border-top: 1px solid var(--rule); }
.step h2 { font-size: 1.5rem; margin: 0 0 0.6rem; max-width: none; }
.step p { margin: 0 0 1rem; color: var(--mute); max-width: 60ch; }
.step .row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; margin: 0 0 1rem; padding: 1rem 1.2rem; background: var(--device); color: #fff; border-radius: 12px; }
.key code { font: 600 1.15rem/1.3 ui-monospace, "Cascadia Mono", Menlo, monospace; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.key .btn { margin-left: auto; border-color: #fff; color: #fff; }
.key .btn:hover { background: #fff; color: var(--device); }
.prose { max-width: 44rem; padding-top: 2.5rem; }
.prose h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: none; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.4rem; margin: 2.2rem 0 0.6rem; }
.prose p { margin: 0 0 1rem; }

@media (max-width: 760px) {
  .top nav a.opt { display: none; }
  .spec div { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plans > div + div { border-left: 0; border-top: 1px solid #2a3035; }
  .device figcaption { position: static; margin-top: 0.8rem; color: #a9b2b8; padding: 0 0.3rem 0.3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
