/* ShivaVision: the business card as a website. Pure black ground, bare-steel silver for everything that speaks, Jost throughout. One theme, by design. */
:root {
  --bg: #000000;
  --fg: #e6e7ea;        /* light silver: headings, names */
  --text: #c9cbd0;      /* silver: body */
  --muted: #8f9198;     /* dim silver: labels, captions */
  --line: #26272b;
  --accent: #d7d8dc;    /* the silver of the etched elements */
  --accent-fg: #000000;
  --card: #0a0a0b;
  --display: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  padding-block: 0; padding-inline: 20px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 640px; margin: 0 auto; padding-block: 28px 56px; }
header.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 8px 48px; }
header.top a { color: var(--fg); text-decoration: none; letter-spacing: 0.02em; font-weight: 500; }
header.top .brand { display: inline-flex; align-items: center; gap: 12px; }
header.top .brand .mark { width: 32px; height: 32px; border-width: 2px; border-radius: 8px; border-color: var(--accent); }
header.top .brand .mark i { width: 16px; height: 16px; background: var(--accent); }
header.top nav { display: flex; gap: 20px; font-size: 15px; }
header.top nav a { color: var(--muted); font-weight: 500; }
header.top nav a:hover, header.top nav a[aria-current] { color: var(--fg); }
.eyebrow { font-size: 14px; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 14px; } /* no uppercase: "iPhone" keeps its lowercase i */
h1 { font-family: var(--display); font-weight: 500; color: var(--fg); font-size: clamp(34px, 6vw, 48px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 20px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-family: var(--display); font-weight: 500; color: var(--fg); font-size: 26px; line-height: 1.2; margin: 0 0 10px; text-wrap: balance; }
p { margin: 0 0 16px; max-width: 60ch; }
p.lead { font-size: 19px; color: var(--text); }
.muted { color: var(--muted); }
.doors { display: grid; gap: 16px; margin-block: 44px 8px; }
.door { display: block; padding: 22px 22px 20px; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; border-radius: 6px; }
.door:hover { border-color: var(--accent); }
.door .when { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 8px; }
.door h2 { margin-bottom: 6px; }
.door p { margin: 0; color: var(--muted); }
.door .go { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; }
.door.primary { border-width: 2px; border-color: var(--fg); }
.facts { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.facts li { padding-top: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; display: grid; grid-template-columns: 1fr 2fr; gap: 12px; font-size: 15px; }
.facts li span:first-child { color: var(--muted); }
@media (max-width: 420px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }
form.wait { margin-block: 32px 8px; padding: 22px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; }
form.wait label { display: block; font-weight: 500; color: var(--fg); margin-bottom: 8px; }
form.wait .row { display: flex; gap: 10px; flex-wrap: wrap; }
form.wait input[type="email"] { flex: 1 1 220px; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--fg); }
form.wait input[type="email"]:focus, form.wait button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form.wait button { font: inherit; font-weight: 500; padding: 12px 20px; border: 0; border-radius: 4px; background: var(--accent); color: var(--accent-fg); cursor: pointer; }
form.wait button[disabled] { opacity: 0.6; cursor: default; }
form.wait .fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
form.wait .msg { margin: 12px 0 0; font-size: 15px; }
form.wait .msg[data-kind="ok"] { color: var(--accent); font-weight: 600; }
form.wait .msg[data-kind="err"] { color: #e8a0a0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { border-left: 2px solid var(--line); padding-left: 14px; font-size: 15px; color: var(--muted); margin-block: 28px; }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
footer a { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .door { transition: border-color 120ms ease; } }
/* Single-form waitlist: product checkboxes */
form.wait .picks { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
form.wait .picks legend { font-size: 13px; padding: 0; margin-bottom: 4px; }
form.wait .pick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 0; cursor: pointer; }
form.wait .pick input { margin-top: 4px; accent-color: var(--accent); }
form.wait .org { margin-top: 10px; }
form.wait .org[hidden] { display: none; }
form.wait input[type="text"] { flex: 1 1 220px; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--fg); }
/* Contact page */
.card { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 24px; margin-block: 24px; display: grid; gap: 14px; }
.card .who { display: flex; align-items: center; gap: 16px; }
.mark { width: 48px; height: 48px; border: 2px solid var(--accent); border-radius: 12px; display: grid; place-items: center; flex: none; }
.mark i { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: block; }
.card h1 { font-size: 30px; margin: 0; }
.card .who .mark { border-color: var(--accent); }
.card .role { color: var(--muted); margin: 2px 0 0; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.links li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 16px; }
.links li span:first-child { color: var(--muted); }
.links a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--muted); }
.links a:hover { border-color: var(--accent); }
.btn { display: inline-block; font: inherit; font-weight: 500; padding: 12px 20px; border: 0; border-radius: 4px; background: var(--accent); color: var(--accent-fg); text-decoration: none; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--fg); border: 1px solid var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
footer .legal { font-size: 12px; color: var(--muted); max-width: none; margin-top: 6px; }
.tag { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--fg); margin: 28px 0 8px; text-wrap: balance; }

/* The phone: on wide screens the page sits inside a portrait, card-shaped frame on a white ground. On a phone, the phone is the frame and none of this applies. */
@media (min-width: 720px) {
  body { background: #ffffff; padding-block: 56px 72px; min-height: 100vh; }
  .wrap {
    max-width: 440px; background: var(--bg); border-radius: 48px; padding: 56px 32px 40px; position: relative;
    border: 1px solid #1c1d20;
    /* steel rim: dark bezel, bright steel, dark outer edge; then a deep ground shadow that lifts it off the white */
    box-shadow:
      0 0 0 4px #121316,
      0 0 0 7px #b9bbc1,
      0 0 0 8px #6e7076,
      0 0 0 9px #2a2b2f,
      inset 0 0 0 1px #000,
      inset 1px 1px 0 0 rgba(255,255,255,0.06),
      0 50px 90px -30px rgba(0,0,0,0.55),
      0 18px 36px -12px rgba(0,0,0,0.35),
      0 2px 6px rgba(0,0,0,0.25);
  }
  .wrap::before { /* light along the top and left of the rim, shade along the bottom and right */
    content: ""; position: absolute; inset: -9px; border-radius: 57px; pointer-events: none;
    background: linear-gradient(150deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 28%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.25) 78%, rgba(0,0,0,0.45) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 9px;
  }
  header.top { padding-bottom: 36px; }
  h1 { font-size: 34px; }
  p.lead { font-size: 17px; }
}
/* App proportions for controls */
form.wait { border-radius: 16px; }
form.wait input[type="email"], form.wait input[type="text"] { border-radius: 12px; }
form.wait button, .btn { border-radius: 999px; padding-inline: 22px; }
.facts li { padding-block: 12px; }
.card { border-radius: 16px; }

/* Waitlist: confirmation panel replaces the form after a successful join */
form.wait .joined { display: grid; gap: 6px; padding: 4px 0; }
form.wait .joined strong { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--fg); }
form.wait .joined span { color: var(--text); font-size: 15px; }
