/* Continuo — minimal vanilla CSS, no build step. */

:root {
  --c-bg: #f7f7f5;
  --c-surface: #ffffff;
  --c-text: #1a1a1a;
  --c-muted: #6b7280;
  --c-border: #e5e7eb;
  --c-accent: #cc1111;        /* red — matches Continuo logo */
  --c-accent-hover: #a30d0d;
  --c-accent-tint: #fde8e8;    /* very pale red — section backgrounds */
  --c-surface-alt: #faf8f3;    /* warm off-white — alternating section backgrounds */
  --c-error: #b91c1c;
  --c-error-bg: #fee2e2;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  font-size: 16px;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  max-width: 1120px;   /* matches .hero-inner so the logo
                          aligns vertically with the hero text */
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--c-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: 44px;       /* sized for topbar — enough for wordmark + tagline to be legible */
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-links a:not(.btn-primary):not(.nav-current),
.link-button {
  color: var(--c-text);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 6px 0;
}
.nav-links a:hover, .link-button:hover { color: var(--c-accent); }
/* Current-page indicator for the topbar nav (About / Pricing /
   Sign in). The Start free CTA doesn't get this treatment — it's
   always the primary action regardless of which page is active. */
.nav-links a.nav-current {
  color: var(--c-accent);
  font-weight: 600;
  position: relative;
}
.nav-links a.nav-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-accent);
}

.inline-form { display: inline; }

.container {
  max-width: 720px;
  margin: 32px auto;
  padding: 0 24px;
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card.narrow { max-width: 480px; margin: 32px auto; }

h1 { margin-top: 0; }
.muted { color: var(--c-muted); }
.small { font-size: 14px; }

label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--c-muted);
}
label input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
}
label input:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
  border-color: var(--c-accent);
}

button, .btn-primary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: white;
  cursor: pointer;
  text-decoration: none;
}
/* Force white text on .btn-primary anchors inside .page-section,
   since the generic .page-section a { color: var(--c-accent) }
   rule has higher specificity than .btn-primary alone and
   would otherwise paint red-on-red. */
.page-section a.btn-primary,
.page-section a.btn-primary:visited,
.page-section a.btn-primary:hover,
.page-section a.btn-primary:focus {
  color: white;
  text-decoration: none;
}
button:hover, .btn-primary:hover { background: var(--c-accent-hover); text-decoration: none; }
button:disabled { background: var(--c-muted); cursor: wait; }

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--c-bg); text-decoration: none; }

/* Quick-action card on the dashboard: white box, red border.
   Mirrors .btn-primary's red accent but reads as a neutral
   (non-primary) action. Used for "Your secrets" and
   "Recipients" on the dashboard quick-actions row, while
   "+ New secret" stays as the red solid .btn-primary. */
.btn-outline-accent {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-accent);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.btn-outline-accent:hover {
  background: var(--c-accent-tint);
  text-decoration: none;
}
.btn-outline-accent:visited { color: var(--c-accent); }

.error-banner {
  background: var(--c-error-bg);
  color: var(--c-error);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}

/* Info callout — used on /secrets/view.html to flag assigned
   recipients who haven't signed up yet (Issue 3 banner).
   Distinct from .error-banner (red), .disclaimer-banner (yellow):
   blue-tinted, signals "useful information, not a problem". */
.callout-info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e3a8a;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 12px 0 16px 0;
  font-size: 14px;
}
.callout-info a { color: #1d4ed8; text-decoration: underline; }
.callout-info p { margin: 0 0 8px 0; }
.callout-info p:last-child { margin-bottom: 0; }

.disclaimer-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  /* Defensive: the global `label` rule sets color to muted;
     make sure text inside the banner always renders dark. */
}

.disclaimer-banner,
.disclaimer-banner * {
  color: #78350f;
}

.disclaimer-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #451a03;
  font-size: 15px;
}

/* Phase 10 follow-up (Issue 2): inline create-and-assign
   form on /secrets/{id}. The <details> block expands to
   show name + email + channel-tick checkboxes + a submit
   button. The form fields stack vertically (single column
   on mobile) with the submit button + status span on the
   same row when there's space.

   The .status-success / .status-error / .status-pending
   classes on the #add-recipient-status span drive the
   color of the one-shot status line after submit. They
   reuse the same muted/accepted/error design tokens as
   the badges elsewhere — same blue/green/red palette.

   The .channel-ticks <fieldset> groups the two channel
   checkboxes so the user clearly sees "this is where you
   pick which channels the new recipient gets added to".
   Reuses the standard <fieldset> / <legend> browser
   defaults (with our muted-small legend styling). */
.inline-add-recipient {
  margin: 12px 0 16px 0;
  padding: 0;
}
.inline-add-recipient summary {
  cursor: pointer;
  padding: 8px 12px;
  background: #f3f4f6;
  border: 1px dashed #9ca3af;
  border-radius: var(--radius);
  font-size: 14px;
  color: #1f2937;
  user-select: none;
}
.inline-add-recipient summary:hover {
  background: #e5e7eb;
}
.inline-add-recipient[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  margin-bottom: -1px;
}
.inline-add-recipient form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #9ca3af;
  border-radius: var(--radius);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: #fafafa;
}
.inline-add-recipient label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #4b5563;
  gap: 4px;
}
.inline-add-recipient input[type="text"],
.inline-add-recipient input[type="email"] {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.inline-add-recipient input:focus {
  outline: 2px solid #6c3bf5;
  outline-offset: -1px;
  border-color: transparent;
}
.inline-add-recipient .channel-ticks {
  /* No border / no padding wrapper: the checkboxes
     sit in the same visual column as the form's
     other input fields (Name, Email, Note). The
     two labels stack vertically with a small gap,
     so the two checkboxes are aligned with each
     other (left edges match). Previously the
     border + padding made the checkboxes look
     like a separate widget, and the "Add to:"
     label sat at the form's left edge while
     the checkboxes were indented by the box's
     padding — the user observed that as
     "Add to: as text and checkboxes not aligned"
     (2026-07-06). */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Force the channel-ticks container to start at
     the form's content left edge (x=0 relative to
     the form's padding box). The defensive
     `text-indent: 0` and `margin-left: 0` guard
     against any inherited indent. */
  margin-left: 0;
  text-indent: 0;
}
.inline-add-recipient .add-to-label {
  /* 2026-07-06: the "Add to:" text label sits
     at the form's content left edge (same
     x-position as the form's other text-input
     labels: Full name, Email, Note). The user
     wants the checkboxes to start DIRECTLY
     BELOW the "Add to:" label — same x-position.

     Earlier fixes (commits e70e745 + 75019c9)
     tried to add a 16px left indent to both
     rules so they'd align with each other
     in an indented subgroup. The user
     reported this as "still in the middle
     of the box" — the 16px indent put the
     subgroup too far right. The correct
     alignment is at the form's content
     left edge, matching Full name / Email /
     Note. */
  margin: 12px 0 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
}
.inline-add-recipient .channel-ticks label {
  /* Channel 1 / Channel 2 checkbox lines. The
     user wants these to sit at the FORM'S
     CONTENT LEFT EDGE — the same x-position
     as "Full name" / "Email" / "Note" / "Add to:"
     above. The `<input type="checkbox">` width
     is overridden by the rule below (width: auto)
     so the input is at its natural ~13x13 size
     and the label takes its content width.
     No negative margin is needed. */
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1f2937;
  padding: 0;
  margin: 0;
}
.inline-add-recipient .channel-ticks input[type="checkbox"] {
  /* Override the global `label input { width: 100% }`
     rule (line 122) — it makes ALL <input> elements
     inside a <label> take 100% of the label's width.
     For checkboxes that means the input element
     stretches to the form's full width and visually
     looks like a separate text input box, with the
     actual checkbox widget squashed to the left.

     The user reported this on 2026-07-06: the
     checkboxes were 464px x 13px, with the
     checkbox widget inside the stretched input
     box. Setting `width: auto` returns the
     checkbox to its natural ~13x13 size.

     `flex: 0 0 auto` — same as
     `ol.recipient-rows .recipient-row .row-pick
     input[type="checkbox"]` (line 704). The flex
     shorthand disables the input's natural flex
     grow/shrink behaviour, so the checkbox stays
     at its intrinsic size even though the label
     is a flex container with `align-items: center`.

     `align-self: center` — the row-pick comment
     explains this: "the checkbox sticks to the
     baseline (because the label's children align
     by baseline by default in flex) and sits
     'on top of' the email text visually".
     Same fix here. */
  width: auto;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}
.inline-add-recipient button[type="submit"] {
  align-self: flex-start;
}
.status-success { color: #15803d; }
.status-error   { color: var(--c-error, #b91c1c); }
.status-pending { color: #6b7280; }

.disclaimer-ack {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #451a03;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin: 12px 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.disclaimer-ack,
.disclaimer-ack * {
  color: #451a03;
}

.disclaimer-ack .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

.disclaimer-ack input[type="checkbox"] {
  width: auto;        /* override the global `label input { width: 100% }` */
  margin: 0;
  margin-top: 3px;
  flex-shrink: 0;
  padding: 0;         /* override the global padding too */
  display: inline-block;
}

.footer {
  max-width: 1120px;
  margin: 64px auto 32px;
  padding: 24px 24px 0;
  color: var(--c-muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--c-border);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--c-muted);
  text-decoration: none;
  font-size: 13px;
}
.footer-links a:hover {
  color: var(--c-accent);
}
.footer-tagline {
  margin: 0;
}

ul { padding-left: 20px; }
li { margin-bottom: 6px; }

ul.actions {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
ul.actions li { margin: 0; }

header.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
header.row h1 { margin: 0; }

table.secrets {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
table.secrets th, table.secrets td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}
table.secrets th { color: var(--c-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--c-bg);
  color: var(--c-muted);
  border: 1px solid var(--c-border);
}
.badge-active { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.badge-released { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.badge-revoked { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.badge-reminder_sent { background: #fef3c7; color: #a16207; border-color: #fde68a; }
.badge-pending { background: #fef3c7; color: #a16207; border-color: #fde68a; }
.badge-accepted { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.badge-declined { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

button.small, .btn-secondary.small { padding: 4px 10px; font-size: 13px; }
.link-button.small { font-size: 13px; }

fieldset {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}
fieldset legend {
  font-size: 14px;
  color: var(--c-muted);
  padding: 0 6px;
}
label.radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
label.radio input { margin-top: 4px; width: auto; }
label.radio small { display: none; }

textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  font-size: 14px;
  font-family: var(--font-mono);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  resize: vertical;
}
textarea:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
  border-color: var(--c-accent);
}

dl.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  font-size: 14px;
  margin: 0 0 12px;
}
dl.kv dt { color: var(--c-muted); }
dl.kv dd { margin: 0; word-break: break-all; }
dl.kv code { font-size: 12px; }

ul.recipients {
  list-style: none;
  padding: 0;
}
ul.recipients li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
}
ul.recipients li:last-child { border-bottom: none; }
ul.recipients form { margin-left: auto; }

select {
  display: inline-block;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  min-width: 240px;
  margin-right: 8px;
}

ul.attachments {
  list-style: none;
  padding: 0;
}
ul.attachments li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}
ul.attachments li:last-child { border-bottom: none; }
ul.attachments li > div:first-child { flex: 1 1 200px; }
ul.attachments li .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
ul.attachments li .actions form { margin: 0; }

input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 14px;
}

progress {
  display: block;
  width: 100%;
  margin-top: 8px;
  height: 8px;
}

/* ---------- Phase 6: relay reorderable recipient rows ---------------- */

ol.recipient-rows {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
ol.recipient-rows .recipient-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  background: var(--c-surface, #fff);
}
ol.recipient-rows .recipient-row.dragging {
  opacity: 0.5;
  background: var(--c-surface-hover, #f5f5f5);
}
ol.recipient-rows .recipient-row .drag-handle {
  cursor: grab;
  color: var(--c-muted);
  font-weight: bold;
  user-select: none;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -2px;
}
ol.recipient-rows .recipient-row .seq-number {
  font-weight: bold;
  min-width: 1.5em;
  text-align: right;
  color: var(--c-muted);
}
ol.recipient-rows .recipient-row .row-pick {
  flex: 1 1 auto;
  /* override the global `label input { width: 100% }` so the
     checkbox + name don't take up the entire row */
  display: flex;
  align-items: center;
  gap: 8px;
}
ol.recipient-rows .recipient-row .row-pick input[type="checkbox"] {
  width: auto;
  margin: 0;
  /* Force the checkbox to the same vertical center as the
     text. Without this, the checkbox sticks to the baseline
     (because the label's children align by baseline by
     default in flex) and sits "on top of" the email text
     visually. align-self: center overrides the row's
     baseline-default behaviour for inline children. */
  flex: 0 0 auto;
  align-self: center;
}
ol.recipient-rows .recipient-row .row-window {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--c-muted);
  /* The window field used to truncate "default" because the
     input was only 4em wide. Bumped to 7em so the full
     placeholder fits, and added explicit width to the
     label/unit so the layout is consistent across rows. */
  min-width: 12em;
}
ol.recipient-rows .recipient-row .row-window-label {
  flex: 0 0 auto;
}
ol.recipient-rows .recipient-row .row-window input[type="number"] {
  /* Wider so "default" doesn't truncate. 7em fits both
     "default" and up to 3-digit values (365). */
  width: 7em;
  padding: 3px 6px;
  font-size: 13px;
  /* disable the global label input padding/sizing */
  margin: 0;
  display: inline-block;
}
ol.recipient-rows .recipient-row .row-window-unit {
  flex: 0 0 auto;
}
ol.recipient-rows .recipient-row .row-window input[type="number"]:disabled {
  opacity: 0.4;
}
ol.recipient-rows .recipient-row .row-reorder {
  display: inline-flex;
  gap: 2px;
}
ol.recipient-rows .recipient-row .btn-row {
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2px 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  color: var(--c-fg);
}
ol.recipient-rows .recipient-row .btn-row:hover {
  background: var(--c-surface-hover, #f5f5f5);
}

.hero {
  background: var(--c-surface);
  /* No horizontal padding — .hero-inner handles its own
     max-width centering. Adding padding here would push
     the hero text inward, misaligning it with the topbar
     logo (which is anchored by .nav padding). */
  padding: 24px 0 32px;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;     /* both columns centered vertically */
  /* 24px left padding aligns the hero text with the topbar
     logo, which sits 24px in from the .nav left edge due to
     the nav's own padding. */
  padding: 0 0 0 24px;
}
.hero-text {
  /* Left column: text content. Bumped headline to 38px for
     presence; narrowed to 540px so the right column has room. */
  text-align: left;
  max-width: 540px;
}
.hero-text h1 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.hero-text h1 strong {
  color: var(--c-accent);
  font-weight: 700;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0 0 24px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.hero-note {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 24px;
}
.hero-quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-quick-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-text);
}
.hero-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  /* Quiet charcoal — demoted so it doesn't compete with the
     primary CTA above. Red is reserved for action, not decoration. */
  color: var(--c-text);
  opacity: 0.55;
  margin-top: 2px;
}

/* ---------- Hero: right column (artifacts) ----------------------- */

/* Right column is a vertically stacked composition: cert on
   top, flow arrow in the middle, email mock on the bottom.
   Sits on a soft blush panel — softer than the original
   salmon so it doesn't out-shout the left column. */
.hero-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fef4f1;     /* softer blush — was --c-accent-tint */
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 28px 24px;
}

/* ---------- Hero: scroll cue (sits below the hero panel) --------- */

/* "See how it works ↓" sits at the bottom edge of the hero,
   centered, subtle. Tells the visitor there's content below
   without screaming it. */
.hero-scroll-cue {
  display: flex;
  justify-content: center;
  padding: 24px 0 4px;
}

.hero-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted, #6b6b6b);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.hero-scroll-link:hover {
  color: var(--c-accent);
  text-decoration: none;
}

.hero-scroll-arrow {
  font-size: 16px;
  line-height: 1;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* ---------- Header: de-emphasised CTA link ----------------------- */

/* The header used to carry a pill-shaped "Start free" button that
   duplicated the hero CTA. Replaced with a quieter text link
   that ends in an arrow — still discoverable, doesn't compete
   with the primary CTA below. */
.nav-cta-link {
  color: var(--c-accent);
  font-weight: 500;
  text-decoration: none;
  padding: 4px 2px;
  margin-left: 4px;
}

.nav-cta-link:hover {
  color: var(--c-accent-hover);
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: stretch;
  }
  .hero-text {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
  }
  .hero-ctas {
    justify-content: center;
  }
}

/* ---------- Hero: Certificate of Release + email mock ----------- */

/* (Old horizontal workflow preview removed — the hero now
   uses .hero-graphic as a right-column panel with stacked
   cert + flow + email. See .hero-graphic above.) */

.cert {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 14px 16px 12px;
  width: 100%;
  max-width: 340px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06),
              0 2px 4px rgba(0, 0, 0, 0.03);
  transform: rotate(-0.5deg);  /* was -1.2 — subtler tilt for the row layout */
  transition: transform 0.3s ease;
  margin: 0 auto;
}
.cert:hover {
  transform: rotate(0) scale(1.02);
}
.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 8px;  /* tightened from 12px */
  margin-bottom: 10px;  /* tightened from 14px */
}
.cert-title {
  font-weight: 700;
  font-size: 12px;  /* tightened from 13px */
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.cert-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;  /* tightened from 11px */
  font-weight: 600;
  color: #047857;
  background: #d1fae5;
  padding: 2px 7px;  /* tightened from 3px 8px */
  border-radius: 9px;
}
.cert-pulse {
  width: 5px;  /* tightened from 6px */
  height: 5px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: cert-pulse 1.8s ease-in-out infinite;
}
@keyframes cert-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.7; transform: scale(0.9); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0); }
}
.cert-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;  /* tightened from 8px */
  margin-bottom: 10px;  /* tightened from 14px */
}
.cert-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.cert-label {
  color: var(--c-muted);
  font-size: 10px;  /* tightened from 11px */
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cert-value {
  color: var(--c-text);
  font-weight: 500;
  text-align: right;
}
.cert-sig {
  background: #f9fafb;
  border: 1px solid var(--c-border);
  border-radius: 5px;
  padding: 7px 9px;  /* tightened from 10px 12px */
  margin-bottom: 8px;  /* tightened from 10px */
  position: relative;
  overflow: hidden;
}
.cert-sig-label {
  font-size: 9px;  /* tightened from 10px */
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;  /* tightened from 4px */
}
.cert-sig-bytes {
  font-size: 10px;  /* tightened from 11px */
  color: var(--c-text);
  line-height: 1.4;
  word-break: break-all;
  position: relative;
}
/* Subtle shimmer sweep across the signature block */
.cert-sig::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(108, 59, 245, 0.08) 50%,
    transparent 100%
  );
  animation: cert-shimmer 4s ease-in-out infinite;
}
@keyframes cert-shimmer {
  0% { left: -100%; }
  60%, 100% { left: 200%; }
}
.cert-key {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--c-muted);
  padding-top: 4px;
  border-top: 1px solid var(--c-border);
}
.cert-key-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}
.cert-key-fp {
  color: var(--c-text);
  font-weight: 600;
  font-family: var(--font-mono);
}

.trust {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0 24px;
}
.trust h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 32px;
  text-align: center;
}
.trust-item {
  margin-bottom: 36px;
}
.trust-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--c-text);
}
.trust-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-muted);
  margin: 0;
}

/* The .callout block is defined in the marketing section below
   (~line 942). The old 720px rule was removed when the marketing
   landing page was added in Phase 8. */

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; }
}

/* ---------- Marketing: trust strip (named crypto primitives) --- */

.trust-strip {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 56px 24px;
  margin-top: 0;
}
.trust-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.trust-strip-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.trust-strip-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.trust-strip-header p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-muted);
  margin: 0;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-strip-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--c-accent);
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.trust-strip-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-muted);
  margin: 0;
}
@media (max-width: 720px) {
  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .trust-strip-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Marketing: how it works (3 steps) ------------------- */

.how {
  background: var(--c-surface-alt);
  padding: 64px 24px;
  margin-top: 0;
}
.how-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.how h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 32px;
  text-align: center;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.how-step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 24px 28px;
}
.how-step-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--c-accent);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
.how-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--c-text);
}
.how-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0;
}

/* ---------- Marketing: use cases (6 cards) ---------------------- */

.usecases {
  background: var(--c-surface);
  padding: 64px 24px;
}
.usecases-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.usecases h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  text-align: center;
}
.usecases-sub {
  font-size: 15px;
  color: var(--c-muted);
  text-align: center;
  margin: 0 0 32px;
}
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- Marketing: everyday life (4 cards, 2 cols) ---------- */

.everyday {
  background: var(--c-surface-alt);
  padding: 64px 24px;
}
.everyday-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.everyday h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  text-align: center;
}
.everyday-sub {
  font-size: 15px;
  color: var(--c-muted);
  text-align: center;
  margin: 0 0 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.everyday-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Was 2 cols / max-width 760px. With 6 cards it now mirrors the
     "Built for serious contingencies" section above (also 3×2),
     so the page rhythm stays consistent. */
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.usecase-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.usecase-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-1px);
  text-decoration: none;
}
/* Icon chip at the top of each use-case card. Pale red bg +
   red stroke icon, gives the card a visual anchor before
   the heading text. */
.usecase-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--c-accent-tint);
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
}
.card-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.usecase-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--c-text);
}
.usecase-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
  margin: 0 0 10px;
}
.usecase-card .arrow {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 500;
}

/* ---------- Marketing landing (/) ----------------------------- */

/* Full-bleed background escape: a section that's nested inside
   a centered parent (like .container at max-width: 720px) can
   bleed its background to the viewport edges with the standard
   100vw + calc trick. The <section> keeps its own padding; the
   *-inner wrapper inside it centers the content. */
.hero, .trust-strip, .how, .usecases, .everyday, .callout {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.marketing {
  width: 100%;
  margin: 0;
  padding: 0;
}
.marketing-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.callout-inner {
  /* Centered narrow content for the Verify-a-release
     callout. The .callout panel itself is full-bleed
     (pale-red bg); the .callout-inner wrapper constrains
     the text width so it reads comfortably. */
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}
.callout-inner h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  text-align: center;
}
.callout-inner p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0 0 16px;
  /* Left-aligned body text for readability. Centered
     paragraphs are harder to scan on multi-line content. */
  text-align: left;
}
.callout-inner code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px;
  background: rgba(204, 17, 17, 0.06);
  color: var(--c-text);
  padding: 1px 5px;
  border-radius: 4px;
  /* Break long URLs at any character but don't leave
     orphaned fragments. `overflow-wrap: anywhere` is
     smarter than `break-all` — only breaks when the
     line truly can't fit the word. */
  overflow-wrap: anywhere;
  display: inline-block;
  max-width: 100%;
}

/* The .hero block is defined in the marketing section above
   (~line 470). The old 720px / 64px-padding rules were
   removed when the marketing landing page was added in
   Phase 8 — they were a leftover from when / was a single
   centered text block.
   Each *.inner section now defines its own max-width +
   margin-auto + display behavior in its dedicated block
   above. No fallback overrides needed. */

/* Center the heading + button inside the callout (but keep
   body text left-aligned for readability). Defined here so
   the .callout-cta selector wins over .callout-inner p
   when both match. */
.callout-inner .callout-cta {
  text-align: center;
  margin: 16px 0 0;
}

.callout-cta {
  text-align: center;
  margin-top: 8px;
}

.callout {
  background: var(--c-accent-tint);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 32px 24px 36px;
}

/* ---------- Marketing: responsive ------------------------------ */

@media (max-width: 900px) {
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .how-steps, .usecases-grid, .everyday-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { text-align: left; }
  .cert { max-width: 100%; transform: rotate(0); }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; }
  .trust-strip-inner { grid-template-columns: 1fr; }
}

/* ---------- Marketing: legal/info pages (privacy, legal, about) ----- */

.page-hero,
.page-section {
  /* full-bleed background escape — same trick the landing-page
     sections use; .page-hero/.page-section are direct children
     of <main class="container"> which has max-width: 720px.
     Push them out to the viewport edges with the standard
     100vw + negative-margin hack. */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  padding: 56px 24px;
}
.page-hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.page-section {
  background: var(--c-surface);
}
.page-section-alt {
  background: var(--c-surface-alt);
}
.page-hero-inner,
.page-section-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Legal callout — highlighted block for the most important legal
   statements (e.g. the zero-knowledge expiry clause on the Terms
   page). Soft cream background with a left red border so it reads
   as a deliberate emphasis block, not just a paragraph. Uses the
   same colour vocabulary as .faq (cream) and the brand red
   (left-border accent) so it feels like part of the page's design
   language rather than a borrowed pattern. */
.legal-callout {
  margin: 24px 0;
  padding: 20px 24px;
  background: #faf6f4;
  border-left: 3px solid var(--c-accent);
  border-radius: 0 6px 6px 0;
}
.legal-callout h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.legal-callout p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
}
.legal-callout p:last-child {
  margin-bottom: 0;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--c-text);
}
.page-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0 0 12px;
}
.page-hero-meta {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
  font-style: italic;
}
.page-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--c-text);
}
.page-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--c-text);
}
.page-section h3:first-child {
  margin-top: 0;
}
.page-section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  margin: 0 0 16px;
}
.page-section ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.page-section li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  margin-bottom: 8px;
}
.page-section code {
  background: var(--c-surface-alt);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 13px;
  font-family: var(--font-mono);
}
.page-section a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-section a:hover {
  color: var(--c-accent-hover);
}

@media (max-width: 640px) {
  .page-hero { padding: 40px 24px; }
  .page-hero h1 { font-size: 28px; }
  .page-section { padding: 40px 24px; }
}

/* ---------- /verify page ---------------------------------------- */

.verify-form {
  margin: 16px 0 24px;
}
.verify-form textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius, 6px);
  background: #f9fafb;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text);
  resize: vertical;
  box-sizing: border-box;
}
.verify-form textarea:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: -1px;
  border-color: var(--c-accent);
}
.verify-form button {
  margin-top: 12px;
}
.verify-key-fp,
.verify-key-pem {
  background: #f9fafb;
  border: 1px solid var(--c-border);
  border-radius: var(--radius, 6px);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 8px 0 16px;
}
.verify-meta {
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 8px;
}

/* PEM disclosure — uses a custom chevron that rotates when
   open. The default browser disclosure marker is suppressed
   (handled by .verify-key-details summary::-webkit-details-marker
   below). */
.verify-key-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 36px 8px 0;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  user-select: none;
}
.verify-key-details > summary::-webkit-details-marker {
  display: none;
}
.verify-key-chevron {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 22px;
  font-weight: 400;
  color: var(--c-accent);
  transition: transform 0.15s ease;
  line-height: 1;
}
.verify-key-details[open] > summary .verify-key-chevron {
  transform: translateY(-50%) rotate(-90deg);
}
.verify-key-details > summary:hover {
  color: var(--c-accent);
}

/* Example result (shown when no envelope has been pasted yet) —
   visually distinguished from real results by lower opacity and
   a small "example" tag, so users don't confuse it with a real
   verification. */
.verify-result--example {
  opacity: 0.7;
}
.verify-result-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-muted);
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.verify-result {
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: var(--radius, 6px);
  border: 1px solid var(--c-border);
}
.verify-result h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.verify-result p {
  margin: 0 0 12px;
}
.verify-result-valid {
  background: #ecfdf5;
  border-color: #10b981;
}
.verify-result-valid h3 {
  color: #047857;
}
.verify-result-invalid {
  background: #fef2f2;
  border-color: #dc2626;
}
.verify-result-invalid h3 {
  color: #b91c1c;
}
.verify-result-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
.verify-result-meta dt {
  font-weight: 600;
  font-size: 13px;
  color: var(--c-muted);
}
.verify-result-meta dd {
  margin: 0;
  font-size: 13px;
  color: var(--c-text);
}

/* ---------- FAQ section (landing page) --------------------------- */

.faq {
  /* full-bleed escape — same trick the other landing-page
     sections use (see .hero). */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  /* Soft cream/blush background — gives the FAQ section its own
     visual identity so it reads as a deliberate trust-building
     beat rather than flat filler between the callout and the
     final CTA. Mirrors the callout's tint palette. */
  background: #faf6f4;
  padding: 72px 24px;
}
.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}
.faq-h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--c-text);
  text-align: center;
}
.faq-sub {
  font-size: 15px;
  color: var(--c-muted);
  text-align: center;
  margin: 0 0 32px;
}
.faq-sub a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  position: relative;
  user-select: none;
}
.faq-item > summary::-webkit-details-marker {
  display: none;     /* hide Safari default triangle */
}
.faq-item > summary::after {
  /* custom chevron that rotates when open */
  content: "›";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 24px;
  font-weight: 400;
  color: var(--c-accent);
  transition: transform 0.15s ease;
  line-height: 1;
}
.faq-item[open] > summary::after {
  transform: translateY(-50%) rotate(-90deg);
}
.faq-item > summary:hover {
  color: var(--c-accent);
}
.faq-answer {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
}
.faq-answer p {
  margin: 0 0 12px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer ul {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.faq-answer li {
  margin-bottom: 8px;
}
.faq-answer a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .faq { padding: 48px 20px; }
  .faq-h2 { font-size: 24px; }
  .faq-item > summary { padding: 18px 32px 18px 0; font-size: 15px; }
}

/* ---------- Final CTA section (landing page) --------------------- */

.final-cta {
  /* full-bleed escape — same trick as .hero / .faq */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  background: var(--c-accent-tint);  /* pale red — the conversion zone */
  padding: 72px 24px 80px;
  text-align: center;
}
.final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.final-cta h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--c-text);
}
.final-cta-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0 auto 32px;
  max-width: 540px;
}
.final-cta-button {
  margin: 0 0 24px;
}
.final-cta-meta {
  font-size: 14px;
  color: var(--c-muted);
  margin: 0;
}
.final-cta-meta a {
  color: var(--c-accent);
  text-decoration: none;
  font-weight: 500;
}
.final-cta-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Large button variant for the final CTA. Sized larger than
   the regular .btn-primary so it has visual weight as the
   conversion anchor. */
.btn-large {
  display: inline-block;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius, 6px);
}

@media (max-width: 640px) {
  .final-cta { padding: 56px 20px 64px; }
  .final-cta h2 { font-size: 26px; }
  .final-cta-sub { font-size: 15px; }
  .btn-large { padding: 14px 28px; font-size: 16px; }
}

/* ---------- Pricing page ---------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 8px;
}
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius, 6px);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--c-accent);
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(204, 17, 17, 0.08);
  background: #fff;
}
.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  white-space: nowrap;
}
.pricing-card-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--c-text);
}
.pricing-card-price {
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.02em;
}
.pricing-period {
  font-size: 13px;
  color: var(--c-muted);
}
.pricing-card-tagline {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-muted);
  margin: 0 0 20px;
  min-height: 42px;     /* keeps the cards the same height */
}
.pricing-card-cta {
  display: block;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius, 6px);
  text-decoration: none;
  margin-bottom: 24px;
}
.btn-secondary.pricing-card-cta {
  background: #ffffff;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-secondary.pricing-card-cta:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-card-features li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
  padding: 8px 0;
  border-top: 1px solid var(--c-border);
}
.pricing-card-features li:first-child {
  border-top: none;
  padding-top: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted);
}

/* Comparison table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 0;
}
.pricing-table thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--c-surface-alt);
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
}
.pricing-table thead th:not(:first-child) {
  text-align: center;
}
.pricing-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  color: var(--c-text);
}
.pricing-table tbody td:not(:first-child) {
  text-align: center;
}
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}
.pricing-table tbody td:first-child {
  font-weight: 500;
  color: var(--c-text);
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pricing-table {
    font-size: 13px;
  }
  .pricing-table thead th,
  .pricing-table tbody td {
    padding: 10px 8px;
  }
}

/* (Vertical flow connector between cert and email inside
   the .hero-graphic panel.) */
.hero-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--c-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-flow-arrow {
  font-size: 18px;
  line-height: 1;
}

/* ---------- Hero: recipient email mock --------------------------- */

.email-mock {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  width: 100%;
  max-width: 340px;     /* matches .cert so the column stays tidy */
  margin-top: 0;
  font-family: var(--font-sans, system-ui, sans-serif);
  overflow: hidden;
}
.email-mock-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--c-surface-alt);
  border-bottom: 1px solid var(--c-border);
}
.email-mock-dots {
  display: flex;
  gap: 4px;
}
.email-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-border);
}
.email-dot:nth-child(1) { background: #ff5f57; }   /* macOS-style */
.email-dot:nth-child(2) { background: #ffbd2e; }   /* traffic lights */
.email-dot:nth-child(3) { background: #28c840; }
.email-mock-from {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.3;
  min-width: 0;
}
.email-mock-from-name {
  font-weight: 600;
  color: var(--c-text);
}
.email-mock-from-addr {
  color: var(--c-muted);
  font-size: 11px;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.email-mock-body {
  padding: 14px 16px 16px;
}
.email-mock-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin: 0 0 10px;
}
.email-mock-snippet {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
  margin: 0 0 14px;
}
.email-mock-snippet em {
  color: var(--c-text);
  font-style: normal;
  font-weight: 500;
}
.email-mock-cta {
  margin: 0 0 10px;
}
.email-mock-button {
  /* Demoted from a filled red pill to a plain text link —
     the email-mock is a mock of an example email, so it should
     look like a typical email CTA (a link), not like the
     primary CTA of the page. Avoids the "three red pills in
     one viewport" problem. */
  display: inline-block;
  background: transparent;
  color: var(--c-accent);
  padding: 4px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--c-accent);
  font-size: 13px;
  font-weight: 500;
}
.email-mock-meta {
  font-size: 11px;
  color: var(--c-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .hero-graphic {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* Phase 8.5 Task 7: tab interface on the recipient release
   page. The tablist sits above the per-tab decrypt panels;
   tabs are styled as underlined links to match the
   rest of the app. */
.release-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--c-border, #e2e2e2);
  margin: 16px 0 20px;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  margin-bottom: -1px; /* overlap the tablist border */
  font: inherit;
  color: var(--c-muted, #6b6b6b);
  cursor: pointer;
}
.tab-btn.tab-active {
  color: var(--c-accent, #0a7e8c);
  border-bottom-color: var(--c-accent, #0a7e8c);
  font-weight: 500;
}
.tab-btn:focus-visible {
  outline: 2px solid var(--c-accent, #0a7e8c);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Phase 8.5 D1: warning banners on the release-confirm
   page. The "this is irreversible" warning is the default
   style (neutral). The "pending recipients" warning uses
   a slightly more urgent amber tone to draw attention. */
.warning-banner {
  background: #fff8e1;
  border: 1px solid #e0c97a;
  border-left: 4px solid #c79a3a;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
  color: #4a3b1a;
  line-height: 1.5;
}
.warning-banner strong {
  color: #2e260f;
}
.warning-banner.warning-pending {
  background: #fff3e0;
  border-color: #d99a4a;
  border-left-color: #b56a1a;
}
.warning-banner a {
  color: #6a4413;
  text-decoration: underline;
}

/* Phase 8.5 UX: one-shot success banner on
   /recipients after the owner clicks "Invite".
   Same style as .warning-banner but in a
   different colour. Uses the existing
   --c-success variable if defined, else
   falls back to the same green as the
   badge-accepted. */
.flash {
  border: 1px solid var(--c-border, #d4c9b5);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0 20px 0;
  font-size: 15px;
  line-height: 1.45;
}
.flash.flash-success {
  background: #ecf7ee;
  border-color: #6abf6a;
  color: #1e4a1e;
}
.flash code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Phase 8.5 Issue 4: inline add-recipient form on
   /secrets/new. The <details> block is a native
   collapsible element. The form inside is a small
   vertical layout matching the rest of the app. */
.add-recipient-details {
  margin-top: 16px;
  border: 1px dashed var(--c-border, #d4c9b5);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
}
.add-recipient-details > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--c-link, #4a3a8c);
  list-style: none;
  user-select: none;
}
.add-recipient-details > summary::marker { content: ""; }
.add-recipient-details > summary::-webkit-details-marker {
  display: none;
}
.add-recipient-details[open] > summary {
  border-bottom: 1px solid var(--c-border, #d4c9b5);
}
.add-recipient-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.add-recipient-form .form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text, #2a2a2a);
  margin-bottom: 0;
}
.add-recipient-form .form-row input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--c-border, #d4c9b5);
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.add-recipient-form .form-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
#add-recipient-status.flash-success {
  color: #1e4a1e;
}
#add-recipient-status.flash-error {
  color: #a01b1b;
}

/* Phase 11 (Issue 2.6): recipient inbox (/recipient/inbox).
   One .inbox-card per secret the recipient is designated
   for, with two .inbox-channel sub-sections (ch1 + ch2)
   inside. State communicated via .badge classes (already
   defined elsewhere in this file). */

.inbox-empty {
  text-align: center;
}

.inbox-card {
  margin: 1rem 0;
  padding: 1.25rem;
  border-left: 4px solid var(--c-accent, #cc1111);
  background: var(--c-card-bg, #fff);
}

.inbox-card-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border, #e5e5e5);
}

.inbox-secret-label code {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text, #1a1a1a);
}

.inbox-channel {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius, 6px);
  background: var(--c-bg-soft, #fafafa);
}

.inbox-channel-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--c-text-muted, #555);
}

.inbox-channel p {
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.inbox-channel .btn-primary,
.inbox-channel .btn-outline-accent {
  display: inline-block;
  margin: 0;
}

.mark-read-btn {
  cursor: pointer;
}

.inbox-channel .badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.85rem;
}

.error-banner.small {
  font-size: 0.85rem;
  padding: 4px 8px;
  margin: 0.25rem 0;
  display: inline-block;
}
