/* Sorio Studio shared look (2026-10-30), taken from the homepage redesign.
   Every restyled page links this file; a page keeps only its own layout inline.
   Design source: AI_Business/OUTPUTS/Brand/2026-10-30_Sorio-Resurf-Merge_Design/.
   Fonts: Newsreader (headlines) + Inter (everything else), loaded by each page from Google Fonts.
   Light only: the brand is a cream page. */
:root {
  color-scheme: light;
  --page: #FBF7F0;
  --card: #FFFFFF;
  --tint: #F6EEDC;
  --ink: #1C1715;
  --body: #2E2825;
  --muted: #6B625D;
  --hair: rgba(28, 23, 21, .09);
  --cherry: #7A1E2C;
  --cherry-deep: #4E111C;
  --cherry-grad: linear-gradient(160deg, #4E111C 0%, #7A1E2C 60%, #8E2A38 100%);
  --butter: #F3E28A;
  --btn: #111111;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* a half-pixel ring plus long, very faint drops */
  --ring: 0 0 0 .5px rgba(28, 23, 21, .10);
  --shadow-card: 0 6px 14px -2px rgba(28,23,21,.03), 0 18px 32px -8px rgba(28,23,21,.04), var(--ring);
  --shadow-lg: 0 24px 56px -14px rgba(78,17,28,.10), 0 48px 96px -26px rgba(78,17,28,.08), var(--ring);
  --shadow-btn: 0 12px 22px -4px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.2);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
mark { background: linear-gradient(transparent 58%, var(--butter) 58%, var(--butter) 92%, transparent 92%); color: inherit; padding: 0 .08em; }

/* ---------- Top bar: translucent, centered links, one small black pill ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--page) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; }
.nav img { height: 24px; width: auto; display: block; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { font-size: 13.5px; font-weight: 500; text-decoration: none; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--cherry); }
.nav .cta { justify-self: end; }
.pill-sm {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px;
  border-radius: 999px; background: var(--btn); color: #fff; font: 600 13px/1 var(--sans);
  text-decoration: none; box-shadow: var(--shadow-btn); white-space: nowrap;
}

/* ---------- Buttons: black pills are the only solid black shape ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--btn); color: #fff; font: 700 15px/1 var(--sans);
  box-shadow: var(--shadow-btn); text-decoration: none; white-space: nowrap;
}
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn:disabled { opacity: .7; cursor: progress; }

/* ---------- Page hero: centered serif headline, italic cherry second line ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px 4px 6px;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card);
  font: 500 13px/1.3 var(--sans); color: var(--ink); text-decoration: none;
}
.badge i {
  width: 20px; height: 20px; border-radius: 50%; background: var(--cherry); color: var(--butter); flex: none;
  font: italic 500 13px/20px var(--serif); text-align: center;
}
.page-hero { text-align: center; padding-block: 72px 56px; }
.page-hero h1 {
  font: 400 clamp(36px, 4.6vw, 56px)/1.15 var(--serif); letter-spacing: -0.03em;
  margin: 28px auto 0; max-width: 1040px; text-wrap: balance;
}
.page-hero h1 span, .page-hero h1 em { display: block; }
.page-hero h1 em { font-style: italic; color: var(--cherry); margin-top: .14em; }
.lede { max-width: 46em; margin: 22px auto 0; color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.meta {
  margin-top: 18px; color: var(--muted); font-size: 14px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px;
}
.meta span + span::before { content: "·"; margin-right: 12px; color: color-mix(in srgb, var(--muted) 60%, transparent); }

/* ---------- Section headings ---------- */
section.block { padding-block: 120px 0; }
.head { text-align: center; max-width: 1000px; margin: 0 auto 48px; }
h2 { font: 400 clamp(30px, 3.6vw, 42px)/1.15 var(--serif); letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h2 em { font-style: italic; color: var(--cherry); display: block; margin-top: .12em; }
.head p { color: var(--muted); font-size: 17px; margin: 18px auto 0; max-width: 40em; text-wrap: balance; }
.eyebrow { font: 600 12px/1.45 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cherry); text-wrap: balance; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow-card); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card-grid .card { padding: 26px 26px 28px; min-width: 0; }
.card .num { display: block; font: 400 34px/1 var(--serif); color: var(--cherry); }
.card h3 { font: 400 25px/1.2 var(--serif); color: var(--cherry); margin: 14px 0 6px; letter-spacing: -0.01em; text-wrap: balance; }
.card p { margin: 0; color: var(--body); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }

/* ---------- Signup row: a white pill holding the fields and the button ---------- */
.signup-wrap { margin: 34px auto 0; max-width: 680px; }
.signup-wrap.wide { max-width: 860px; }
.signup {
  display: grid; grid-template-columns: repeat(var(--fields, 2), minmax(0, 1fr)) auto; gap: 8px;
  padding: 8px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-lg);
}
.signup input {
  min-width: 0; height: 46px; border: 0; border-radius: 999px; padding: 0 18px;
  background: var(--page); font: 400 15px var(--sans); color: var(--ink);
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus-visible { outline-offset: 0; }
.signup input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--cherry); }
.err { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--cherry); }
.err:empty { display: none; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.fine a { color: var(--muted); }
.done { margin: 0; padding: 18px 22px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card); font-size: 17px; font-weight: 600; color: var(--ink); text-align: center; }
.done:focus { outline: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#top-form, #join, #join2, #signup { scroll-margin-top: 76px; }

/* ---------- Showcase: a framed app window on a cherry panel ---------- */
.stage {
  position: relative; border-radius: 28px; padding: clamp(18px, 4vw, 56px);
  background: var(--cherry-grad); overflow: hidden; box-shadow: var(--shadow-lg);
}
.stage::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px;
  background: radial-gradient(closest-side, rgba(243,226,138,.28), transparent); pointer-events: none;
}
.window {
  position: relative; z-index: 1; background: var(--card); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45), var(--ring); overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--hair); font-size: 12.5px; color: var(--muted);
}
.dots { display: flex; gap: 6px; }
.dots b { width: 11px; height: 11px; border-radius: 50%; background: #E5DCCB; }
.window-bar .addr { flex: 1; text-align: center; }

/* ---------- Cherry band ---------- */
.band { background: var(--cherry-grad); color: #fff; }
.band .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: 104px; }
.band h2 em { color: var(--butter); }
.band p { color: rgba(255,255,255,.88); font-size: 17.5px; line-height: 1.6; text-wrap: pretty; }
.framed { position: relative; max-width: 380px; justify-self: center; width: 100%; }
.framed picture { display: block; position: relative; }
.framed picture::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 28px; background: var(--butter); }
.framed img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }

/* ---------- Closing: soft-to-ink serif headline ---------- */
.closing { text-align: center; padding-block: 128px 96px; }
.closing h2 { font-size: clamp(34px, 4.4vw, 52px); }
.closing h2 .soft {
  display: block; background: linear-gradient(180deg, #B5A9A0 0%, var(--muted) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.closing p.sub { color: var(--muted); font-size: 17px; margin: 20px auto 0; max-width: 34em; }

/* ---------- Footer: brand line + three link columns ---------- */
footer.site { border-top: 1px solid var(--hair); }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 56px 32px; }
footer.site img { height: 20px; width: auto; }
footer.site p { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 26ch; }
footer.site h4 { font: 600 14px/1 var(--sans); margin: 0 0 14px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer.site ul a { font-size: 14px; color: var(--muted); text-decoration: none; }
footer.site ul a:hover { color: var(--cherry); }
footer.site .legal { text-align: center; font-size: 14px; color: var(--muted); padding-block: 0 40px; }

/* ---------- Signed up already (sorio_library cookie, read in the head) ---------- */
.lib-open [data-locked]{display:none!important}
.lib-open [data-unlocked][hidden]{display:block!important}

@media (max-width: 900px) {
  .nav ul { display: none; }
  .nav .wrap { grid-template-columns: 1fr auto; }
  .band .wrap { grid-template-columns: 1fr; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .page-hero { padding-block: 44px 40px; }
  .signup { grid-template-columns: 1fr; border-radius: 24px; }
  .signup .btn { width: 100%; }
  section.block { padding-block: 88px 0; }
  .band .wrap { padding-block: 72px; }
  .closing { padding-block: 96px 72px; }
  .pill-sm { padding: 0 13px; }
  .meta { flex-direction: column; align-items: center; gap: 4px; }
  .meta span + span::before { content: none; }
  .framed { max-width: calc(100% - 14px); justify-self: start; }
  .framed picture::before { inset: 14px -14px -14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
