:root {
  --ink: #1E1A4D;        /* deep indigo text */
  --ink-2: #4A4670;      /* secondary text */
  --paper: #F4F5FA;      /* cool page */
  --sheet: #FFFFFF;
  --brand: #534AB7;      /* RecKip Vault purple (app icon) */
  --brand-dark: #3C3489;
  --amber: #EF9F27;      /* the reminder bell */
  --line: #DEDCEF;
  --ok: #3B6D11;   --ok-bg: #EAF3DE;
  --soon: #854F0B; --soon-bg: #FAEEDA;
  --late: #A32D2D; --late-bg: #FCEBEB;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--sheet); padding: 8px 12px; z-index: 10; }
.small { font-size: 14px; color: var(--ink-2); }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 6.4vw, 78px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; max-width: 18ch; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font: 600 15px var(--body); text-decoration: none; white-space: nowrap;
}
.btn.big { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.solid { background: var(--brand); color: #fff; }
.btn.solid:hover { background: var(--brand-dark); }
.btn.line { border: 2px solid var(--ink); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.top-nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .top-nav { display: none; } .top-in .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 96px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lede { font-size: 19px; color: var(--ink-2); margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 14px; }
@media (max-width: 920px) { .hero-in { grid-template-columns: 1fr; } }

/* The family file: tabs on top of a sheet, like a hanging folder */
.file { position: relative; filter: drop-shadow(0 30px 40px rgba(30, 26, 77, .14)); }
.tabs { display: flex; gap: 6px; padding-left: 18px; }
.tab {
  --tc: var(--brand);
  border: 0; cursor: pointer;
  font: 600 15px var(--body); color: #fff;
  background: var(--tc);
  padding: 10px 20px 14px; margin-bottom: -6px;
  border-radius: 12px 12px 0 0;
  opacity: .62; transform: translateY(6px);
  transition: transform .2s, opacity .2s;
}
.tab.t2 { --tc: #0F6E56; } .tab.t3 { --tc: #D85A30; } .tab.t4 { --tc: #185FA5; }
.tab[aria-selected="true"] { opacity: 1; transform: none; }
.tab:hover { opacity: 1; }
.sheet {
  position: relative; background: var(--sheet);
  border-radius: 4px var(--r) var(--r) var(--r);
  border-top: 8px solid var(--tc, var(--brand));
  padding: 24px 26px 18px; min-height: 360px;
}
.sheet-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tc, var(--brand)) 14%, #fff); color: var(--tc, var(--brand));
  font: 700 18px var(--display);
}
.who { font: 700 22px var(--display); margin: 0; letter-spacing: -0.01em; }
.rel { margin: 0; color: var(--ink-2); font-size: 15px; }
.docs { list-style: none; margin: 8px 0 0; padding: 0; }
.docs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F0EFF7; }
.docs li:last-child { border-bottom: 0; }
.doc { font-weight: 500; }
.chip { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.soon { color: var(--soon); background: var(--soon-bg); }
.chip.late { color: var(--late); background: var(--late-bg); }
.chip.none { color: var(--ink-2); background: #EEEDF6; }
.docs.swap li { animation: in .28s ease both; }
.docs.swap li:nth-child(2) { animation-delay: .03s; } .docs.swap li:nth-child(3) { animation-delay: .06s; }
.docs.swap li:nth-child(4) { animation-delay: .09s; } .docs.swap li:nth-child(5) { animation-delay: .12s; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 480px) { .tabs { padding-left: 8px; gap: 4px; } .tab { padding: 9px 12px 13px; font-size: 14px; } .sheet { padding: 20px 18px 14px; } }
@media (prefers-reduced-motion: reduce) { .docs.swap li { animation: none; } .tab { transition: none; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.intro { color: var(--ink-2); font-size: 18px; margin: 18px 0 40px; }

.keeps { background: var(--sheet); }
.drawer { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 32px; }
.drawer li { padding: 18px 0 18px 18px; border-left: 4px solid var(--c); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.drawer b { display: block; color: var(--ink); font: 700 19px var(--display); margin-bottom: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { margin-bottom: 22px; }
.split p { color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 2; } }

.timeline { background: var(--sheet); border-radius: var(--r); padding: 22px 24px; border: 1px solid var(--line); }
.group { font-weight: 600; font-size: 14px; color: var(--ink-2); margin: 14px 0 4px; }
.group:first-child { margin-top: 0; }
.group.late-t { color: var(--late); }
.row { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid #F0EFF7; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.late { background: #E24B4A; } .dot.soon { background: var(--amber); } .dot.ok { background: #639922; } .dot.note { background: var(--brand); }
.what { font-weight: 500; }
.what em { display: block; font-style: normal; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.when { font-size: 14px; color: var(--ink-2); }

.cards { background: var(--ink); color: #fff; }
.cards p, .cards li { color: #CFCDE6; }
.plain { padding-left: 1.1em; margin: 0; } .plain li { margin-bottom: 8px; max-width: 56ch; }
.card-stage { display: grid; gap: 22px; justify-items: center; }
.bcard {
  position: relative; width: min(420px, 100%); aspect-ratio: 85 / 55;
  background: #0F6E56; border-radius: 16px; padding: 24px 26px; color: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(-3deg);
}
.bc-top { font-weight: 600; font-size: 15px; }
.bc-name { font: 700 28px var(--display); margin-top: 18%; letter-spacing: -0.01em; }
.bc-title { font-size: 13px; color: #CDEFE3; }
.bc-lines { display: grid; gap: 2px; margin-top: 12px; font-size: 13px; }
.bc-qr {
  position: absolute; right: 22px; bottom: 22px; width: 84px; height: 84px;
  background: #fff url("img/qr-sample.svg") center / 72px no-repeat; border-radius: 8px;
}
.scan-hint { color: #CFCDE6; font-size: 14px; margin: 4px 0 0; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.three p { color: var(--ink-2); margin-top: 10px; }
.three > div { border-top: 3px solid var(--ink); padding-top: 18px; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; gap: 28px; } }

.download { background: var(--brand); color: #fff; }
.get { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.get-item { display: flex; flex-direction: column; gap: 10px; background: #fff; color: var(--ink); text-decoration: none; border-radius: var(--r); padding: 24px; }
.get-item b { font: 800 26px var(--display); letter-spacing: -0.02em; }
.get-item span { color: var(--ink-2); font-size: 15px; }
.get-item .go { margin-top: auto; color: var(--brand); font-weight: 600; font-size: 16px; }
.get-item:hover { outline: 3px solid var(--amber); }
@media (max-width: 860px) { .get { grid-template-columns: 1fr; } }

.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font: 700 19px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 12px 0 0; }

.foot { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.small-brand { font-size: 17px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot .small { margin-left: auto; }

/* contact */
.contact { padding: 88px 0; background: var(--sheet); border-top: 1px solid var(--line); }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 14px; }
.contact-intro p { color: var(--ink-2); font-size: 18px; margin: 0; }
.contact-intro p.small { font-size: 15px; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; position: relative; }
.kinds { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.kinds label { position: relative; }
.kinds input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kinds span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); font-weight: 600; font-size: 15px; color: var(--ink-2); }
.kinds input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.kinds input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 3px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.form-field em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.form-field input, .form-field textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-status { margin: 0; font-weight: 600; color: var(--ink-2); }
.form-status[data-kind="ok"] { color: var(--ok); }
.form-status[data-kind="error"] { color: var(--late); }
@media (max-width: 860px) { .contact-in { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
