/* ═══════════════════════════════════════════════════════════════════════
   Components: the mark, the buttons, and the four blocks the page
   repeats: steps, notes, the ledger, the questions.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── the mark ───────────────────────────────────────────────────────  */
.mark{
  display:flex;align-items:center;gap:10px;
  text-decoration:none;color:var(--text);
}
.mark-plate{
  width:28px;height:28px;flex:none;
  background:linear-gradient(180deg,var(--signal-up),var(--signal));
  border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 4px 14px -6px var(--signal-glow);
}
.mark-plate > span{
  width:13px;height:19px;border-radius:6px 6px 1px 1px;background:#fff;
  display:flex;align-items:center;justify-content:flex-end;padding-right:2px;
}
.mark-plate i{width:3.5px;height:3.5px;border-radius:50%;background:var(--signal);display:block}
.mark-plate.sm{width:22px;height:22px;border-radius:7px}
.mark-plate.sm > span{width:10px;height:14px;border-radius:4px 4px 1px 1px;padding-right:1.5px}
.mark-plate.sm i{width:2.5px;height:2.5px}
.mark-name{
  font-family:var(--sans);font-weight:600;font-size:20px;letter-spacing:-.02em;
}
.mark-sm .mark-name{font-size:17px}

/* ── buttons ────────────────────────────────────────────────────────
   Square-ish and solid, like the printed thing they are selling. The
   gradient and the inner highlight are the only concession to the screen:
   on a black page a flat rectangle reads as a hole, not a button. */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:11px;
  min-height:52px;padding:0 24px;border-radius:3px;
  font-family:var(--sans);font-weight:600;font-size:16px;letter-spacing:-.01em;
  text-decoration:none;
  border:2px solid var(--signal);
  background:linear-gradient(180deg,var(--signal-up),var(--signal));
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 14px 30px -18px var(--signal-glow);
  transition:background var(--t-fast) ease,border-color var(--t-fast) ease,
             box-shadow var(--t) ease,transform var(--t-fast) var(--ease);
}
.btn:hover{
  background:linear-gradient(180deg,var(--signal),var(--signal-deep));
  border-color:var(--signal-deep);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 18px 40px -16px var(--signal-glow);
}
.btn:active{transform:translateY(1px)}

/* The one button that is the colour of the paper it is selling. */
.btn-pale{
  background:var(--paper);
  color:#0c0f11;
  border-color:var(--paper);
  box-shadow:0 16px 36px -20px rgba(251,250,246,.5);
}
.btn-pale:hover{
  background:#fff;
  border-color:#fff;
  color:#0c0f11;
  box-shadow:0 20px 44px -18px rgba(251,250,246,.55);
}

.head-cta{
  min-height:44px;padding:0 18px;font-size:15px;border-width:1px;
  /* A label that wraps makes the header taller, and every act on the reel
     is padded by the header's measured height. */
  white-space:nowrap;
}

/* ── setup: a real sequence, so it gets numbers ─────────────────────  */
.steps{
  list-style:none;margin:48px 0 0;padding:0;
  display:grid;gap:0;grid-template-columns:repeat(3,1fr);
}
.steps li{
  position:relative;
  padding:28px 30px 6px;
  border-top:1px solid var(--line-2);
}
/* A short lit length of the rule above each step, so the eye starts there. */
.steps li::before{
  content:"";position:absolute;left:0;top:-1px;width:40%;height:1px;
  background:linear-gradient(90deg,var(--signal-lit),transparent);
}
.steps li + li{border-left:1px solid var(--line)}
.steps li + li::before{left:30px;width:calc(40% - 30px)}
.steps .n{
  font-family:var(--mono);font-size:12px;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;color:var(--signal-lit);
}
.steps h3{font-size:23px;margin:14px 0 10px;letter-spacing:-.02em}
.steps p{font-size:16px;color:var(--text-2);margin:0}

/* ── standing notes ─────────────────────────────────────────────────
   Still four notes pinned at angles. They were paper; on a black wall
   paper is a floodlight, so they are lifted panels now and the paper
   stays where it belongs, on the printed cards in the gallery. */
.notes-grid{
  display:grid;grid-template-columns:.8fr 1.2fr;
  gap:clamp(28px,5vw,64px);align-items:start;
}
.notes{
  display:grid;grid-template-columns:1fr 1fr;gap:16px;
  margin:0;padding:0;list-style:none;
}
.note{
  --tilt:0deg;
  position:relative;
  padding:20px 22px 22px;
  background:linear-gradient(180deg,var(--surface-2),var(--surface-1));
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow:var(--lift),var(--shadow-1);
  transform:rotate(var(--tilt));
  transition:transform var(--t) var(--ease),
             border-color var(--t) ease,
             box-shadow var(--t) ease;
}
.note:nth-child(2){--tilt:.5deg}
.note:nth-child(3){--tilt:-.6deg}
.note:hover{
  transform:rotate(var(--tilt)) translateY(-3px);
  border-color:var(--line-2);
  box-shadow:var(--lift),var(--shadow-2);
}
.note .from{
  display:flex;align-items:center;gap:8px;
  font-family:var(--sans);font-weight:500;font-size:12.5px;
  letter-spacing:.02em;color:var(--signal-lit);margin:0 0 10px;
}
/* Drawn rather than imported: four icons is not a reason to put a font or a
   library on the critical path, and an inline stroke follows the label's
   colour without being told. */
.note-ic{
  width:17px;height:17px;flex:none;
  fill:none;stroke:currentColor;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
.note q{
  font-size:19px;line-height:1.32;quotes:none;display:block;color:var(--text);
}

/* ── the ledger ─────────────────────────────────────────────────────  */
.ledger{
  display:grid;grid-template-columns:1fr 1fr;
  gap:clamp(20px,4vw,40px);margin-top:48px;
}
.col{padding:30px 30px 34px;border-radius:4px}
.col-old{
  background:linear-gradient(180deg,var(--surface-1),var(--ink-deep));
  border:1px solid var(--line);
  box-shadow:var(--lift);
}
.col-new{
  background:linear-gradient(162deg,var(--signal-up),var(--signal) 54%,var(--signal-deep));
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 30px 70px -34px var(--signal-glow);
}
.col .kind{
  font-family:var(--sans);font-weight:500;font-size:14px;margin:0 0 14px;
  letter-spacing:.01em;
}
.col-old .kind{color:var(--text-3)}
.col-new .kind{color:rgba(255,255,255,.92)}
.col .amt{
  font-family:var(--sans);font-weight:700;
  font-size:clamp(34px,4.4vw,50px);letter-spacing:-.035em;line-height:1;
  margin:0;
}
.col-old .amt{color:var(--text)}
.col-new .amt{color:#fff}
.col .amt small{font-size:.42em;font-weight:500;letter-spacing:-.01em}
.col-old .amt small{color:var(--text-3)}
.col-new .amt small{color:rgba(255,255,255,.9)}
.col ul{list-style:none;margin:24px 0 0;padding:0;font-size:16px}
.col li{padding:12px 0}
.col-old li{border-top:1px solid var(--line);color:var(--text-2)}
.col-new li{border-top:1px solid rgba(255,255,255,.3)}

/* ── questions ──────────────────────────────────────────────────────  */
.faq{position:relative;margin-top:36px;border-top:1px solid var(--line-2)}
.faq::before{
  content:"";position:absolute;left:0;top:-1px;width:96px;height:1px;
  background:linear-gradient(90deg,var(--signal-lit),transparent);
}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{
  cursor:pointer;list-style:none;position:relative;
  padding:20px 48px 20px 0;min-height:48px;
  font-family:var(--sans);font-weight:600;font-size:18px;letter-spacing:-.02em;
  color:var(--text-2);
  transition:color var(--t-fast) ease;
}
.faq summary:hover,
.faq details[open] summary{color:var(--text)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"";position:absolute;right:10px;top:50%;width:12px;height:12px;
  border-right:2px solid var(--signal-lit);border-bottom:2px solid var(--signal-lit);
  transform:translateY(-70%) rotate(45deg);
  transition:transform var(--t) var(--ease),border-color var(--t-fast) ease;
}
.faq summary:hover::after{border-color:#b6d2fb}
.faq details[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.faq .ans{padding:0 0 22px;max-width:66ch;color:var(--text-2);margin:0}
.faq details[open] .ans{animation:faq-in .42s var(--ease) both}
@keyframes faq-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* ── the beta card ──────────────────────────────────────────────────
   The Play Store listing is not live, so the page does not pretend it
   is: the call to action is the enrolment that mails a build, and it
   posts to the same endpoint the visitor page has been using. */
.beta{
  position:relative;
  padding:clamp(24px,3vw,34px);
  border-radius:6px;
  background:linear-gradient(180deg,rgba(27,32,35,.92),rgba(13,17,19,.94));
  border:1px solid var(--line-2);
  box-shadow:var(--lift),var(--shadow-2);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.beta-kind{
  font-family:var(--mono);font-weight:500;font-size:12px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--signal-lit);
  margin:0 0 10px;
}
.beta-h{font-size:clamp(21px,2.2vw,26px);letter-spacing:-.025em;margin:0}
.beta-say{font-size:15.5px;line-height:1.55;color:var(--text-2);margin:12px 0 0}

.beta-noscript{
  margin:14px 0 0;padding:10px 12px;border-radius:4px;
  font-size:14px;line-height:1.45;color:var(--signal-lit);
  background:var(--signal-dim);border:1px solid rgba(138,180,248,.3);
}
.beta-form{display:flex;flex-direction:column;gap:14px;margin-top:24px}
.f{display:flex;flex-direction:column;gap:6px;min-width:0}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.f label{
  font-family:var(--sans);font-weight:500;font-size:13px;color:var(--text-2);
}
.f-note{font-size:12.5px;color:var(--text-3)}
.f input,
.f select{
  width:100%;min-height:48px;padding:0 14px;
  font-family:var(--sans);font-size:15px;color:var(--text);
  background-color:rgba(0,0,0,.34);
  border:1px solid var(--line-2);border-radius:4px;
  appearance:none;-webkit-appearance:none;
  transition:border-color var(--t-fast) ease,
             background-color var(--t-fast) ease,
             box-shadow var(--t-fast) ease;
}
.f input::placeholder{color:var(--text-4)}
.f select{
  padding-right:38px;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238ab4f8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px;
}
.f input:hover,.f select:hover{border-color:var(--line-3)}
.f input:focus,
.f select:focus{
  outline:none;
  border-color:var(--signal-lit);
  background-color:rgba(0,0,0,.5);
  box-shadow:0 0 0 3px var(--signal-dim);
}
.beta-go{width:100%;margin-top:4px}
.beta-msg{font-size:13.5px;line-height:1.5;color:var(--text-3);margin:0;min-height:1.3em}
.beta-msg.is-bad{color:#ffa2a2}

/* What the card becomes once the mail is away. */
.beta-done{text-align:left;margin-top:18px}
.beta-tick{
  display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:50%;
  background:rgba(95,208,160,.14);border:1px solid rgba(95,208,160,.4);
  color:#5fd0a0;font-family:var(--sans);font-size:19px;line-height:1;
}
.beta-done h4{font-size:21px;letter-spacing:-.02em;margin:14px 0 8px}
.beta-done p{font-size:15px;line-height:1.6;color:var(--text-2);margin:0 0 10px}
.beta-done p:last-child{margin-bottom:0}

@media (max-width:480px){
  .f-row{grid-template-columns:1fr}
}

/* ── a phone has one screen per act and no scrollbar of its own ──────
   The reel shrinks an act that will not fit, which is the guard that
   stops anything being clipped. But a shrunk act is small type, so the
   two tallest ones are set tighter here first and only scaled for what
   is left over. */
@media (max-width:620px){
  .col{padding:20px 20px 22px}
  .col ul{margin-top:16px;font-size:15px}
  .col li{padding:9px 0}
  .col .kind{margin-bottom:10px}
  .ledger{margin-top:28px;gap:16px}

  .notes{gap:12px}
  .note{padding:15px 17px 17px}
  .note .from{margin-bottom:7px}
  .note q{font-size:17px}
  .notes-grid{gap:24px}

  .steps li{padding:18px 0 4px}
  .faq summary{padding:16px 44px 16px 0;font-size:17px}
  .faq .ans{padding-bottom:18px}
}
