/* gooi.io — v3 light design ("Hollandse lucht").
   Loaded after style.css on the homepage, secret and download pages.
   Variables are declared on body.v3 so they win over the admin theme that
   theme.js writes inline on <html>. */

body.v3 {
  --page: #f4f7fb;
  --sky-top: #cfe0f6;
  --sky-mid: #e3edf9;
  --ink: #10203a;
  --ink-2: #44546e;
  --line: #dde4ee;
  --delft: #2f6bd8;
  --delft-deep: #1f52b3;
  --delft-soft: #e8f0fd;
  --ok: #1f8a5f;
  --shadow-card: 0 1px 2px rgba(16, 32, 58, 0.06), 0 12px 40px -12px rgba(16, 32, 58, 0.22);

  /* map onto the variables style.css components use */
  --bg: var(--page);
  --surface: #ffffff;
  --surface-hover: #f2f6fc;
  --border: var(--line);
  --text: var(--ink);
  --text-muted: var(--ink-2);
  --accent: var(--delft);
  --accent-hover: var(--delft-deep);
  --accent-glow: rgba(47, 107, 216, 0.12);
  --secondary: var(--ok);
  --success: var(--ok);
  --success-glow: rgba(31, 138, 95, 0.12);
  --error: #c2410c;
  --error-glow: rgba(194, 65, 12, 0.08);
  --gradient-primary: linear-gradient(180deg, #3a76e2, var(--delft));
  --gradient-progress: linear-gradient(90deg, var(--delft), #5b93ef);
  --gradient-bg: none;
  --radius: 18px;
  --radius-sm: 12px;

  background: var(--page);
  color: var(--ink);
  font-size: 17px;
}

body.v3 a { color: var(--delft); }
body.v3 .beta-ribbon, body.v3 .beta-ribbon:hover { color: #fff; }
body.v3 .beta-ribbon { position: absolute; opacity: 1; } /* scrolls away with the sky instead of floating over the content */

/* ---------- Top bar ---------- */

.v3-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem clamp(1rem, 4vw, 2rem);
}

.v3-logo { display: inline-flex; line-height: 0; }
.v3-logo img { height: 42px; width: auto; }
.beta-ribbon ~ .v3-top .v3-logo { margin-left: 2.5rem; }

.v3-top-right { display: flex; align-items: center; gap: 0.75rem; }

.v3-login {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.v3-login:hover { background: rgba(255, 255, 255, 0.12); }

body.v3 .lang-toggle {
  position: static;
  margin: 0;
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
body.v3 .lang-btn { color: #dfe7f7; border-radius: 999px; padding: 0.25rem 0.6rem; }
body.v3 .lang-btn.active { background: #fff; color: var(--ink); }

/* ---------- Hero: Dutch sky + canal houses ---------- */

.v3-hero {
  position: relative;
  margin-top: -76px;              /* sky runs behind the top bar */
  padding-top: 76px;
  background: linear-gradient(180deg, #11265a 0%, #2a4c97 38%, #7a8dcf 72%, #e2b5a5 100%);
  overflow: hidden;
  color: #fff;
}

.v3-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1rem, 4vw, 2rem) 268px;
}

.v3-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 380px;
  background: url('/img/skyline-dusk.svg') repeat-x left bottom / auto 190px; /* no-JS fallback */
  pointer-events: none;
}
.v3-skyline.is-live { background: none; }
.sky-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sky-back path { fill: #2b3f78; opacity: 0.55; }
.sky-back-win { fill: #ffd27a; opacity: 0.4; }
.sky-edge { fill: none; stroke: rgba(214, 222, 240, 0.16); stroke-width: 2; stroke-linejoin: round; }
.sky-course { fill: rgba(214, 222, 240, 0.07); }
.sky-fanlight { fill: #0d1a38; }
.sky-win .pane-dark { fill: #0c1733; }
.sky-win .pane-lit,
.sky-win .pane-tv,
.sky-win .room,
.sky-win .curtain { opacity: 0; transition: opacity 0.9s ease; }
.sky-win.on .pane-lit,
.sky-win.on .room,
.sky-win.on .curtain { opacity: 1; }
.sky-win.on .room { opacity: 0.5; }
.sky-win.on .curtain { opacity: 0.55; }
.sky-win.tv.on .pane-tv { opacity: 1; animation: sky-tv 2.6s steps(1) infinite; }
@keyframes sky-tv { 0% { opacity: 1; } 18% { opacity: 0.7; } 33% { opacity: 0.95; } 55% { opacity: 0.6; } 78% { opacity: 0.9; } }
.sky-win .frame { stroke: rgba(236, 230, 214, 0.38); stroke-width: 1.4; transition: stroke 0.9s ease; }
.sky-win.on .frame { stroke: rgba(150, 110, 60, 0.75); }
.sky-win .scene { opacity: 0; transform: translateY(2px); transition: opacity 0.8s ease, transform 0.8s ease; }
.sky-win.has-scene .scene { opacity: 1; transform: none; }
.steam path { animation: sky-steam 2.8s ease-in-out infinite; }
.steam path + path { animation-delay: -1.4s; }
@keyframes sky-steam { 0% { transform: translateY(1px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-2px); opacity: 0; } }
.rip-warm { fill: rgba(255, 210, 122, 0.4); }
.rip-cool { fill: rgba(160, 182, 232, 0.28); }
.sky-ripples rect { animation: sky-drift 7s ease-in-out infinite alternate; }
.sky-ripples rect:nth-child(2n) { animation-duration: 9.5s; animation-direction: alternate-reverse; }
.sky-ripples rect:nth-child(3n) { animation-duration: 12s; }
@keyframes sky-drift { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
.sky-glow { animation: sky-glow 3.6s ease-in-out infinite alternate; }
@keyframes sky-glow { from { opacity: 0.75; } to { opacity: 1; } }
.sky-dot { fill: #f6f8fc; animation: sky-dot 2.6s ease-out forwards; }
@keyframes sky-dot { from { opacity: 0.85; } to { opacity: 0; } }
.sky-plane { transition: opacity 0.4s ease; filter: drop-shadow(0 2px 3px rgba(5, 12, 30, 0.5)); }

.v3-h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
  max-width: 15ch;
}
.v3-h1 span { display: block; }

.v3-lede {
  margin-top: 1.1rem;
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: #d6dff2;
}

.v3-promises {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.7rem 1.75rem;
}

.v3-promises li {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  font-size: 0.98rem;
}

.v3-promises svg,
.v3-no-list li::before {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: 0 0 0 1px rgba(31, 138, 95, 0.18);
}

/* keep the heading put while the card grows (results, file list) */
.v3-intro { padding-top: clamp(0.5rem, 3vh, 2rem); position: relative; z-index: 2; text-shadow: 0 1px 14px rgba(8, 16, 42, 0.45); }

/* ---------- The card (the tool) ---------- */

.v3-card {
  position: relative;
  z-index: 2;
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(5, 12, 30, 0.55), 0 1px 2px rgba(5, 12, 30, 0.2);
  padding: 0.6rem 1.25rem 1.4rem;
  scroll-margin-top: 1rem;
}

.v3-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0 -0.65rem 1rem;
  padding: 0 0.65rem;
  border-bottom: 1px solid var(--line);
}

.v3-tabs [role="tab"] {
  position: relative;
  flex: 1;
  padding: 0.95rem 0.5rem 0.85rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.v3-tabs [role="tab"]::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background-color 0.2s ease;
}

.v3-tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.v3-tabs [role="tab"][aria-selected="true"]::after { background: var(--delft); }
.v3-tabs [role="tab"]:hover { color: var(--ink); }

body.v3 :focus-visible {
  outline: 3px solid rgba(47, 107, 216, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Drop zone: quiet dashed field, no box-in-box */
body.v3 .drop-zone {
  background: #fff;
  border: 2px dashed #c9d6ea;
  border-radius: 16px;
  padding: 2rem 1.25rem 1.6rem;
  box-shadow: none;
}
body.v3 .drop-zone:hover,
body.v3 .drop-zone.drag-over,
body.v3 .drop-zone.dragover {
  border-color: var(--delft);
  background: #f6f9ff;
}
body.v3 .drop-zone-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: var(--delft-soft);
  color: var(--delft);
}
body.v3 .drop-zone-icon svg { width: 28px; height: 28px; }
body.v3 .drop-zone-text { color: var(--ink); font-weight: 600; font-size: 1.12rem; }
body.v3 .drop-zone-hint { color: var(--ink-2); }

body.v3 .btn { border-radius: 12px; font-weight: 600; }
body.v3 .btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(47, 107, 216, 0.6); }
body.v3 .btn-primary:hover { background: var(--delft-deep); }
body.v3 .btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
body.v3 .btn-secondary:hover { background: var(--surface-hover); }

body.v3 .link-input {
  background: var(--page);
  border: 1px solid var(--line);
  color: var(--ink);
}

body.v3 .btn-copy { background: var(--delft); color: #fff; border-radius: 10px; }
body.v3 .btn-copy.is-done { background: var(--ok); }

body.v3 .result-container,
body.v3 .error-container,
body.v3 .resume-container,
body.v3 .progress-container,
body.v3 .recent-section,
body.v3 .download-info {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

body.v3 .result-icon { background: rgba(31, 138, 95, 0.12); color: var(--ok); }
body.v3 .qr-container { box-shadow: none; border: 1px solid var(--line); }
body.v3 .recent-section { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
body.v3 .expiry-select,
body.v3 select {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ---------- Secret composer inside the card ---------- */

.v3-secret-intro { color: var(--ink-2); font-size: 0.97rem; margin-bottom: 0.9rem; }

body.v3 .secret-form,
body.v3 .secret-result { border: 0; padding: 0; background: none; }
body.v3 .field-label { display: none; }

body.v3 .secret-text {
  width: 100%;
  min-height: 8.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--page);
  color: var(--ink);
  font: 500 1rem/1.5 'Space Grotesk', sans-serif;
  resize: vertical;
}
body.v3 .secret-text:focus { outline: 3px solid rgba(47, 107, 216, 0.35); border-color: var(--delft); }

.secret-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0.85rem 0 1rem;
}
.secret-ttl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.93rem; color: var(--ink-2); }
.secret-ttl label { color: var(--ink); font-weight: 600; }
.secret-ttl select { padding: 0.35rem 0.55rem; border-radius: 8px; font: inherit; }
.secret-count { font-size: 0.8rem; color: var(--ink-2); }
.secret-count.is-near { color: var(--error); }
.secret-error { margin: -0.25rem 0 0.9rem; color: var(--error); font-size: 0.93rem; }
.btn-wide { width: 100%; }
.secret-result-title { font-size: 1.15rem; margin-bottom: 0.8rem; }
body.v3 .secret-result .link-input { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.82rem; }
.secret-note { color: var(--ink-2); font-size: 0.93rem; margin: 0.8rem 0 1rem; }
[hidden] { display: none !important; }

/* ---------- Sections ---------- */

.v3-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1rem, 4vw, 2rem) 0;
}

.v3-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 24ch;
}

/* How it works — a real sequence, so numbered */
.v3-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.v3-steps li { counter-increment: step; }
.v3-step-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--delft);
}
.v3-step-icon::after {
  content: counter(step);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.v3-step-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v3-steps h3 { margin-top: 1.1rem; font-size: 1.15rem; }
.v3-steps p { margin-top: 0.35rem; color: var(--ink-2); max-width: 32ch; }

/* Locked box explainer */
.v3-box {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.v3-box-text p { margin-top: 1rem; color: var(--ink-2); max-width: 46ch; line-height: 1.65; }

.v3-journey {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.5rem 1.8rem;
}
.v3-key-arc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 7% 1.2rem;
  padding-bottom: 1rem;
  border: 2px dashed #f0b34a;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  padding-top: 0.6rem;
  color: #8a5a06;
  font-size: 0.88rem;
  font-weight: 600;
}
.v3-key-arc svg { width: 22px; height: 22px; fill: none; stroke: #d48a0b; stroke-width: 2.2; stroke-linecap: round; }
.v3-nodes { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.25rem; }
.v3-node, .v3-hop { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center; font-size: 0.88rem; font-weight: 600; }
.v3-hop { flex: 1; color: var(--ink-2); font-weight: 500; font-size: 0.8rem; padding-top: 0.6rem; position: relative; }
.v3-hop::before { content: ''; position: absolute; top: 1.55rem; left: 0; right: 0; border-top: 2px dotted #b9cdef; z-index: 0; }
.v3-node-dot {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--delft-soft);
  color: var(--delft);
}
.v3-node-us .v3-node-dot { background: var(--ink); color: #fff; }
.v3-node svg, .v3-parcel svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v3-parcel { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.v3-parcel svg { width: 20px; height: 20px; }

/* What we don't do */
.v3-no-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem 2rem;
  margin-top: 1.75rem;
  max-width: 900px;
}
.v3-no-list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; }
.v3-no-list li::before {
  content: '';
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a5f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.v3-no-note { margin-top: 1.5rem; color: var(--ink-2); font-size: 0.95rem; }

/* Secret note promo */
.v3-sp-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
}
.v3-sp h2 { color: #fff; }
.v3-sp p { margin: 1rem 0 1.5rem; color: #c5d0e2; max-width: 44ch; }
.v3-chat { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.v3-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
}
.v3-redact { filter: blur(4px); user-select: none; }
.v3-bubble-gone { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--delft); color: #fff; }
.v3-bubble-gone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Professionals */
.v3-pro-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.v3-pro p { margin-top: 0.5rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- Footer: the canal at night ---------- */

.v3-footer {
  margin-top: clamp(4rem, 10vh, 6rem);
  background: #0f1d3a;
  color: #c3cde0;
  font-size: 0.95rem;
}
.v3-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem clamp(1rem, 4vw, 2rem) 2rem;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.v3-footer h2 { color: #fff; font-size: 0.95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.9rem; }
.v3-footer ul { list-style: none; display: grid; gap: 0.6rem; }
.v3-footer a { color: #c3cde0 !important; text-decoration: none; }
.v3-footer a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.v3-footer-brand img { height: 38px; width: auto; }
.v3-footer-brand p { margin-top: 0.9rem; max-width: 32ch; line-height: 1.55; }
.v3-footer-brand address { font-style: normal; margin-top: 0.9rem; font-size: 0.88rem; color: #8e9ab3; line-height: 1.5; }
.v3-footer-bottom {
  --gutter: clamp(1rem, 4vw, 2rem);
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(1180px - 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: #8e9ab3;
}
@media (max-width: 820px) {
  .v3-footer-inner { grid-template-columns: 1fr 1fr; }
  .v3-footer-brand { grid-column: 1 / -1; }
}

/* ---------- Small screens ---------- */

@media (max-width: 920px) {
  .v3-hero-inner { grid-template-columns: 1fr; padding-bottom: 268px; }
  .v3-card { max-width: 560px; }
  .v3-box, .v3-sp-inner { grid-template-columns: 1fr; }
  .v3-steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body.v3 { font-size: 16px; }
  /* tool first: heading, card, then the promises */
  .v3-intro { display: contents; }
  .v3-hero-inner { gap: 1.25rem; padding-top: 1.25rem; }
  .v3-h1 { order: 1; font-size: 2.1rem; }
  .v3-lede { order: 2; margin-top: -0.5rem; font-size: 1rem; }
  .v3-card { order: 3; }
  .v3-promises { order: 4; margin-top: 0.25rem; }
  .v3-logo img { height: 34px; }
  .beta-ribbon ~ .v3-top .v3-logo { margin-left: 2.9rem; }
  .v3-login { padding: 0.4rem 0.6rem; }
  .v3-promises { grid-template-columns: 1fr; }
  .v3-card { padding: 0.4rem 0.9rem 1.1rem; border-radius: 18px; }
  .v3-skyline { height: 230px; background-size: auto 140px; }
  .v3-hero-inner { padding-bottom: 168px; }
  .v3-nodes { font-size: 0.8rem; }
  .v3-node-dot { width: 44px; height: 44px; }
  .v3-hop span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-tabs [role="tab"]::after { transition: none; }
  .sky-ripples rect, .sky-glow, .sky-win.tv.on .pane { animation: none; }
  .sky-win .pane, .sky-win .scene { transition: none; }
}

/* ---------- Receiving pages (download, bundle, secret) ---------- */

.v3-receive-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 3.5rem) clamp(1rem, 4vw, 2rem) 230px;
}

.v3-card-receive { padding: clamp(1.4rem, 4vw, 2.1rem); }

.v3-receive-title {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.v3-receive-sub { margin-top: 0.5rem; color: var(--ink-2); }

body.v3 .download-icon { display: none; }
body.v3 .download-info { margin-top: 1.25rem; padding-top: 0; padding-bottom: 0; }
body.v3 .file-details {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.25rem 1rem;
  margin-bottom: 1.25rem;
}
body.v3 .file-detail { border-color: var(--line); }
body.v3 .file-detail-label { color: var(--ink-2); }
body.v3 .file-detail-value { color: var(--ink); font-weight: 600; }
body.v3 .bundle-file-item { background: var(--page); border-color: var(--line); }
body.v3 .bundle-file-item:hover { background: var(--delft-soft); }
body.v3 .progress-bar-track { background: var(--delft-soft); }

.v3-invite-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.v3-invite h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.v3-invite p { margin-top: 0.35rem; color: var(--ink-2); }

.sv-secret {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--delft);
  border-radius: 12px;
  background: var(--page);
  font: 500 1.05rem/1.6 'JetBrains Mono', ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 50vh;
  overflow: auto;
}
.sv-expires { margin-top: 0.4rem; color: var(--ink-2); font-size: 0.92rem; }
.sv-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sv-note { margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; }

/* Receive pages: when the link is dead, the error is the whole story */
.v3-card-receive:has(#error-section:not(.hidden)) .v3-receive-title,
.v3-card-receive:has(#error-section:not(.hidden)) .v3-receive-sub { display: none; }
body.v3 .v3-card-receive .error-container { padding: 0.5rem 0 0; }
body.v3 .v3-card-receive .error-message { color: var(--ink); font-size: 1.15rem; font-weight: 600; line-height: 1.4; }

/* Launch promo pill above the hero heading (promo.js shows it while it runs) */
.v3-promo {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.38rem 0.85rem 0.38rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.v3-promo svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #ffd9c7;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v3-promo[hidden],
body[data-mode="secret"] .v3-promo { display: none; }

/* Download pages: honest note when a big file can't stream to disk here */
.save-notice {
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--delft-soft, #e8f0fd);
  color: var(--ink, #10203a);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Free tools row on the homepage */
.v3-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.v3-tool {
  display: block;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--ink) !important;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v3-tool:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(16, 32, 58, 0.06), 0 18px 44px -14px rgba(16, 32, 58, 0.3); }
.v3-tool:focus-visible { outline: 3px solid var(--delft); outline-offset: 3px; }
.v3-tool-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--delft-soft); color: var(--delft); }
.v3-tool-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v3-tool h3 { margin-top: 0.9rem; font-size: 1.12rem; }
.v3-tool p { margin-top: 0.35rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 920px) { .v3-tools-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .v3-tool { transition: none; } .v3-tool:hover { transform: none; } }
