/* Shared structure for generated pages. Theme set by body.t-editorial / body.t-athletic;
   colors come from --bg, --accent, --grad, --on-accent (derived from the creator's photo).
   Light mode: body.m-light, or body.m-auto on a phone set to light (tokens at the end of the file).
   --tint is the accent for soft washes and borders; --d-* are the dark colors, kept on photo cards. */
:root {
  --ink: #f5efe9;
  --ink-2: rgba(245, 239, 233, .74);
  --ink-3: rgba(245, 239, 233, .5);
  --glass: rgba(255, 246, 238, .07);
  --glass-2: rgba(255, 246, 238, .12);
  --line: rgba(255, 246, 238, .13);
  --radius: 22px;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
.t-athletic {
  --glass: rgba(255, 244, 230, .05);
  --glass-2: rgba(255, 244, 230, .09);
  --line: rgba(255, 244, 230, .11);
  --radius: 14px;
  --display: "Big Shoulders Display", Impact, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { display: block; }
button { font: inherit; color: inherit; }
/* One focus ring for keyboard users, in the creator's accent */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu a:focus-visible { outline-offset: -2px; border-radius: 10px; }

/* Backdrop */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.backdrop img { position: absolute; inset: -15%; width: 130%; height: 130%; max-width: none; object-fit: cover; filter: var(--bd-filter, blur(56px) saturate(1.5) brightness(.88)); transform: scale(1.1); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) var(--veil-0, 20%), transparent) 0%, color-mix(in srgb, var(--bg) var(--veil-1, 58%), transparent) 36%, color-mix(in srgb, var(--bg) var(--veil-2, 88%), transparent) 66%, var(--bg) 100%); }
.backdrop.plain { background: radial-gradient(90% 50% at 50% 0%, color-mix(in srgb, var(--tint, var(--accent)) var(--glow, 30%), var(--bg)) 0%, var(--bg) 70%); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: var(--grain, .09); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.page { position: relative; z-index: 2; max-width: 460px; margin: 0 auto; padding: calc(54px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom)); }
.t-athletic .page { padding-left: 18px; padding-right: 18px; }

.rise { opacity: 0; transform: translateY(14px); animation: rise .85s var(--ease) forwards; animation-delay: calc(min(var(--i, 0), 14) * 65ms + 70ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  *, ::before, ::after { transition-duration: .01ms !important; }
  a.card:hover, button.card:hover, .social:hover, .tile:hover .tile-media img, a.offer-cover:hover > img { transform: none; }
}
/* Phones have no hover: a tapped card does not stay lifted when the buyer comes back */
@media (hover: none) { a.card:hover, button.card:hover, .social:hover { transform: none; } }

/* Header */
.head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar-wrap { position: relative; }
.avatar { width: 116px; height: 116px; border-radius: 50%; padding: 3px; background: var(--ring, linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.35))); box-shadow: var(--ring-shadow, 0 0 0 7px rgba(255,246,238,.07), 0 20px 50px -10px rgba(0,0,0,.6)); }
.avatar img, .avatar .initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .initials { display: grid; place-items: center; background: var(--well, var(--glass-2)); font-family: var(--display); font-size: 48px; }
.pro { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); background: var(--grad); color: var(--on-accent); font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px 3px; border-radius: 6px; white-space: nowrap; box-shadow: var(--pop-shadow, 0 6px 16px -4px rgba(0,0,0,.6)); }
.name { margin-top: 22px; font-family: var(--display); font-weight: 400; font-size: clamp(42px, 11.5vw, 54px); line-height: .98; letter-spacing: -.015em; text-wrap: balance; }
.name em { font-style: italic; }
.meta { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.meta b { color: var(--ink-2); font-weight: 500; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.bio { margin-top: 14px; max-width: 330px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.stats { display: grid; width: 100%; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.stats.cols-1 { grid-template-columns: 1fr; }
.stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 12px 6px 11px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.stat small { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.social { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-sm, none); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.social svg { width: 19px; height: 19px; }
.social:hover { background: var(--glass-2); transform: translateY(-2px); }
.social:active { transform: scale(.94); }

.t-athletic .avatar { width: 120px; height: 120px; background: var(--grad); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tint, var(--accent)) 10%, transparent), 0 24px 60px -12px color-mix(in srgb, var(--tint, var(--accent)) 45%, transparent); }
.t-athletic .avatar img { border: 3px solid var(--bg); }
.t-athletic .name { margin-top: 28px; font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 16.5vw, 76px); line-height: .84; letter-spacing: .005em; }
.t-athletic .name span { display: block; background: var(--grad-ink, var(--grad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-athletic .meta { margin-top: 12px; }
.t-athletic .bio { font-size: 15px; }
.t-athletic .social { border-radius: 12px; }
.t-athletic .social:hover { border-color: color-mix(in srgb, var(--tint, var(--accent)) 55%, transparent); color: var(--accent); background: var(--glass); }

/* Section labels */
.label { display: flex; align-items: center; gap: 12px; margin: 44px 4px 14px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.label i { display: none; }
.label b { font-weight: 500; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.t-athletic .label { align-items: baseline; gap: 10px; margin: 46px 2px 14px; color: var(--ink); letter-spacing: 0; }
.t-athletic .label i { display: inline; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--accent); letter-spacing: .06em; }
.t-athletic .label b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .02em; line-height: 1; }
.t-athletic .label::after { align-self: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.t-athletic .stack { gap: 10px; }

/* Cards */
.card { position: relative; display: block; overflow: hidden; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow, none); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); transition: transform .35s var(--ease), background .25s, border-color .25s; }
a.card:hover, button.card:hover { background: var(--glass-2); border-color: var(--line-hi, rgba(255, 246, 238, .22)); transform: translateY(-2px); }
.t-athletic a.card:hover, .t-athletic button.card:hover { border-color: color-mix(in srgb, var(--tint, var(--accent)) 40%, transparent); }
a.card:active, button.card:active { transform: scale(.985); }

.pill { display: inline-flex; font-size: 11.5px; font-weight: 500; padding: 6px 11px; border-radius: 99px; background: rgba(255, 250, 245, .94); color: #1b1514; }
.t-athletic .pill, .tag { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px 4px; border-radius: 6px; background: var(--grad); color: var(--on-accent); }
.t-editorial .tag { font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: .04em; text-transform: none; padding: 3px 8px; border-radius: 99px; background: var(--well, var(--glass-2)); color: var(--ink-2); }
.pill.inline { margin-bottom: 12px; background: var(--well-pill, rgba(255, 250, 245, .94)); color: var(--well-pill-ink, #1b1514); }
.t-athletic .pill.inline { background: var(--grad); color: var(--on-accent); }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--grad); color: var(--on-accent); font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 99px; transition: gap .3s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.card:hover .btn { gap: 12px; }
.t-athletic .btn { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 18px 11px; border-radius: 10px; }
.price { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.price small { font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.t-athletic .price { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: 0; }
.t-athletic .price small { font-family: var(--sans); font-size: 12.5px; font-weight: 500; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* Featured */
.feature-media { position: relative; background: #efeeea; max-height: 420px; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media .pill { position: absolute; top: 14px; right: 14px; }
.feature-body { padding: 20px; }
.title { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.t-athletic .title { font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .92; letter-spacing: 0; }
.desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: 12px; color: var(--ink-2); padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); }
.t-athletic .chip { border-radius: 6px; }
.t-athletic .featured { border-color: color-mix(in srgb, var(--tint, var(--accent)) 30%, transparent); background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--tint, var(--accent)) 16%, transparent) 0%, transparent 55%), var(--glass); }

.checks { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.checks svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 1px; }
.t-athletic .checks li { color: var(--ink); }
.t-athletic .checks svg { width: 18px; height: 18px; }

/* Product row */
.row { display: flex; gap: 14px; padding: 12px; align-items: center; }
.row-media { flex: none; width: 96px; height: 96px; border-radius: calc(var(--radius) - 7px); overflow: hidden; background: var(--well, var(--glass-2)); }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-body { flex: 1; min-width: 0; padding-right: 2px; }
.row:not(:has(.row-media)) { padding: 16px; }
.row-title { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.05; }
.t-athletic .row-title { font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; }
.row-desc { margin-top: 5px; font-size: 13px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.row-foot .price { font-size: 16px; }
.t-athletic .row-foot .price { font-size: 26px; }
.round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); flex: none; transition: transform .3s var(--ease); }
.t-athletic .round { border-radius: 10px; }
.round svg { width: 16px; height: 16px; }
.card:hover .round { transform: translateX(3px); }

/* Premium */
/* Text over a photo: the dark colors in every mode */
.premium, .offer-cover { color: var(--ink); --ink: #f5efe9; --ink-2: rgba(245, 239, 233, .74); --ink-3: rgba(245, 239, 233, .5); --accent: var(--d-accent); --grad: var(--d-grad); --on-accent: var(--d-on); }
.premium { aspect-ratio: 4 / 5; }
.t-athletic .premium { aspect-ratio: 1 / 1; }
.premium > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.premium::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,8,0) 28%, rgba(10,8,8,.6) 56%, rgba(10,8,8,.95) 100%); }
.ba { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 1; pointer-events: none; }
.pill.glass { background: rgba(15, 11, 10, .45); color: #fff; border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.t-athletic .premium .ba + .premium-body, .t-athletic .premium > .ba ~ .tag { top: auto; }
.feature-media.logo, .row-media.logo { background: #f4f1ec; }
.feature-media.logo img { object-fit: contain; padding: 8% 12%; }
.row-media.logo img { object-fit: contain; padding: 10%; }
.premium-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 20px; z-index: 1; }
.kicker { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.premium .title { font-size: 34px; margin-top: 8px; }
.t-athletic .premium .title { font-size: 46px; }

/* Offers menu */
.menu { padding: 4px 16px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.menu a:last-child { border-bottom: 0; }
.menu a:hover { padding-left: 4px; }
.m-body { flex: 1; min-width: 0; }
.m-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.m-price { font-size: 16px; font-weight: 500; flex: none; }
.m-price small { font-size: 11.5px; color: var(--ink-3); margin-left: 2px; }
.t-athletic .m-price { font-family: var(--display); font-weight: 800; font-size: 22px; }
.m-go { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); flex: none; }
.m-go svg { width: 14px; height: 14px; }
.t-athletic .m-go { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.t-athletic .m-title .tag { font-size: 11px; padding: 3px 6px 2px; background: none; border: 1px solid color-mix(in srgb, var(--tint, var(--accent)) 50%, transparent); color: var(--accent); }

/* Code */
.code { display: flex; align-items: center; gap: 14px; padding: 16px; width: 100%; text-align: left; cursor: pointer; }
.code-body { flex: 1; min-width: 0; }
.code-kicker { display: block; font-size: 15px; font-weight: 500; }
.code-sub { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.code-tag { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--line-dash, rgba(255, 246, 238, .35)); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.code-tag svg { width: 15px; height: 15px; opacity: .8; }
.t-athletic .code { border-style: dashed; border-color: color-mix(in srgb, var(--tint, var(--accent)) 45%, transparent); }
.t-athletic .code-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.t-athletic .code-sub { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
/* Editorial: the brand's initial in a pill-colored tile (as on /vanessaberimbau) */
.code-mono { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); font-family: var(--display); font-style: italic; font-size: 27px; line-height: 1; box-shadow: var(--shadow-sm, none); }
.code:has(.code-mono) { padding: 14px; }
/* Athletic: the code is the headline, with a Copy button (as on /terrence) */
.code-value { display: block; margin-top: 4px; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 10vw, 40px); line-height: 1; letter-spacing: .06em; overflow-wrap: anywhere; background: var(--grad-ink, var(--grad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.code-copy { flex: none; display: flex; align-items: center; gap: 8px; padding: 11px 14px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; transition: transform .3s var(--ease); }
.code-copy svg { width: 15px; height: 15px; }
.code:hover .code-copy { transform: translateX(2px); }

/* Partners */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brand { padding: 16px 14px 14px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; }
.brand-name { font-family: var(--display); font-size: 23px; line-height: 1; }
.t-athletic .brand-name { font-weight: 900; font-size: 25px; line-height: .95; text-transform: uppercase; }
.brand-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.brand-cat svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease), color .25s; }
.brand:hover .brand-cat svg { transform: translate(2px, -2px); color: var(--accent); }
.brand.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }
.brand.wide .brand-cat { margin-top: 0; }

/* Link row */
.link-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; }
.thumb { flex: none; width: 56px; height: 56px; border-radius: calc(var(--radius) - 9px); overflow: hidden; display: grid; place-items: center; background: var(--well, var(--glass-2)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.logo img { object-fit: contain; }
.thumb svg { width: 22px; height: 22px; color: var(--ink-2); }
/* A link with no picture: its site's glyph or the title's initial, on a soft wash of the creator's accent */
.thumb.glyph, .thumb.mono { position: relative; background: linear-gradient(150deg, color-mix(in srgb, var(--tint, var(--accent)) 30%, transparent) 0%, color-mix(in srgb, var(--tint, var(--accent)) 7%, transparent) 100%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint, var(--accent)) 24%, transparent); }
.thumb.glyph svg { color: var(--accent); }
.thumb.mono span { font-family: var(--display); font-style: italic; font-size: 30px; line-height: 1; color: var(--accent); transform: translateY(1px); }
.t-athletic .thumb.glyph, .t-athletic .thumb.mono { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--tint, var(--accent)) 22%, transparent) 0%, transparent 70%), var(--glass-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint, var(--accent)) 32%, transparent); }
.t-athletic .thumb.mono span { font-style: normal; font-weight: 900; font-size: 32px; background: var(--grad-ink, var(--grad)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 2px; }
.sz-s .thumb.mono span { font-size: 24px; }
.sz-l .thumb.mono span { font-size: 38px; }
.lr-body { flex: 1; min-width: 0; }
.lr-title { font-size: 15px; font-weight: 500; }
.lr-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.chev { width: 18px; height: 18px; color: var(--ink-3); flex: none; transition: transform .3s var(--ease), color .25s; }
.card:hover .chev { transform: translateX(3px); color: var(--ink); }

/* Media */
.media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.t-athletic .media { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
.t-athletic .media::-webkit-scrollbar { display: none; }
.t-athletic .tile { flex: 0 0 78%; scroll-snap-align: start; }
.tile-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--well, var(--glass-2)); }
.t-athletic .tile-media { aspect-ratio: 16 / 9; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
button.tile-media { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit; }
.tile-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tile:hover .tile-media img { transform: scale(1.04); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #f5efe9; background: rgba(20,15,14,.5); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.t-athletic .play { left: auto; top: auto; right: 10px; bottom: 10px; transform: none; border-radius: 10px; border: 0; background: var(--grad); color: var(--on-accent); }
.play svg { width: 14px; height: 14px; margin-left: 2px; }
.tile-body { padding: 12px 14px 14px; }
.tile-kicker { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.tile-title { margin-top: 4px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.t-athletic .tile-title { font-weight: 600; }
.t-editorial .media > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.t-editorial .media > .tile:last-child:nth-child(odd):not(:only-child) .tile-media { aspect-ratio: 16 / 8; }

/* Contact and footer */
.contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-top: 44px; }
.contact span { font-size: 13px; color: var(--ink-3); }
.contact b { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Claim: shown on generated pages so the creator can take the shop over */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.claim { margin-top: 40px; padding: 22px 20px 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); text-align: center; }
.claim-t { font-family: var(--display); font-size: 28px; line-height: 1.05; }
.t-athletic .claim-t { font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.claim-s { margin: 8px auto 16px; max-width: 34ch; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.claim-f { display: flex; gap: 8px; }
.claim-f input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--field, rgba(0, 0, 0, .28)); color: var(--ink); font: inherit; font-size: 16px; }
.t-athletic .claim-f input, .t-athletic .claim-f button { border-radius: 10px; }
.claim-f input::placeholder { color: var(--ink-3); }
.claim-f input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.claim-f button { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--grad); color: var(--on-accent); font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; }
.claim-f button svg { width: 15px; height: 15px; }
.claim-f button:disabled { opacity: .6; cursor: progress; }
.claim-m { font-size: 13.5px; color: var(--ink-2); }
.claim-go { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 20px; border-radius: 99px; background: var(--grad); color: var(--on-accent); font-weight: 600; font-size: 14px; }
.t-athletic .claim-go { border-radius: 10px; }
.claim-go svg { width: 15px; height: 15px; }
.claim-m:not(:empty) { margin-top: 12px; }
@media (max-width: 380px) { .claim-f { flex-direction: column; } .claim-f input { flex: none; } .claim-f button { justify-content: center; } }
.foot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.made { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; font-size: 12.5px; color: var(--ink-3); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-sm, none); transition: color .25s, background .25s; }
.made svg { width: 14px; height: 14px; color: var(--accent); }
.made b { font-family: var(--display); font-size: 16px; font-weight: 400; color: var(--ink); }
.t-athletic .made b { font-weight: 800; letter-spacing: .03em; }
.made:hover { color: var(--ink-2); background: var(--glass-2); }
.legal { font-size: 12px; color: var(--ink-3); }
.legal a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink-2); }
.yours { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.yours svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.yours:hover { color: var(--ink); }
.yours:hover svg { transform: translateX(3px); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 10; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--grad); color: var(--on-accent); padding: 12px 18px; border-radius: 99px; font-size: 14px; font-weight: 500; width: max-content; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--pop-shadow, 0 12px 40px -8px rgba(0,0,0,.5)); transition: opacity .3s, transform .4s var(--ease); }
.t-athletic .toast { border-radius: 12px; font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Shop offers (coaching, private lives, guides, programs) */
.offer-m { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.offer-icon { flex: none; width: 48px; height: 48px; border-radius: calc(var(--radius) - 8px); display: grid; place-items: center; background: var(--grad); color: var(--on-accent); }
.offer-icon svg { width: 22px; height: 22px; }
.offer .kicker { margin-bottom: 4px; }
.offer .go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.offer .go svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.offer:hover .go svg { transform: translateX(3px); }
.t-athletic .offer .go { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.offer-l { padding: 22px 20px 20px; border-color: color-mix(in srgb, var(--tint, var(--accent)) 35%, transparent); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tint, var(--accent)) 20%, transparent) 0%, transparent 60%), var(--glass); }
.offer-l .title { margin-top: 6px; }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offer-flag { margin-top: 8px; font-size: 11px; padding: 4px 9px; background: rgba(255, 190, 160, .92); color: #2a1410; font-family: var(--sans); font-weight: 600; letter-spacing: 0; text-transform: none; }
.offer-top .offer-flag { margin-top: 0; }
/* Design engine (lib/render.js shopGroups): the lead cards */
.lead .kicker + .title, .lead .kicker + .offer-flag + .title { margin-top: 8px; }
.featured.lead .feature-media { max-height: 380px; }
.feature-media img.tall { object-position: 50% 22%; }
.row .kicker { margin-bottom: 4px; }
.offer-empty { padding: 18px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--ink-3); font-size: 13.5px; text-align: center; }

/* Offers with a cover picture: l = tall cover card with the text over the picture, m = picture on top, s = picture as the thumbnail.
   Text on a picture stays light whatever the page colors. */
.offer-cover { aspect-ratio: 4 / 5; background: #0c0a0a; border-color: rgba(255, 255, 255, .1); color: #fff; --ink: #fff; --ink-2: rgba(255, 255, 255, .8); --ink-3: rgba(255, 255, 255, .6); backdrop-filter: none; -webkit-backdrop-filter: none; }
.t-athletic .offer-cover { aspect-ratio: 1 / 1; }
.offer-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .9s var(--ease); }
.offer-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 7, 7, 0) 36%, rgba(8, 7, 7, .6) 60%, rgba(8, 7, 7, .93) 100%); }
.t-athletic .offer-cover::after { background: linear-gradient(180deg, rgba(8, 7, 7, .35) 0%, rgba(8, 7, 7, 0) 22%, rgba(8, 7, 7, .1) 34%, rgba(8, 7, 7, .72) 58%, rgba(8, 7, 7, .96) 100%); }
a.offer-cover:hover { border-color: rgba(255, 255, 255, .22); }
a.offer-cover:hover > img, a.offer-pic:hover .offer-media img { transform: scale(1.035); }
/* The body fills the card and sits at the bottom; athletic lifts the kicker to the top corner as a tag */
.cover-body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 22px 20px 20px; }
.cover-body > * { max-width: 100%; }
.cover-body .buy { align-self: stretch; flex-wrap: wrap; gap: 10px 12px; margin-top: 16px; }
.offer-cover .offer-flag { margin: 0 0 10px; }
.t-athletic .offer-cover .kicker { order: -1; margin: -6px 0 auto -6px; padding: 5px 9px 4px; border-radius: 6px; background: var(--grad); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .1em; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6); }
.offer-cover .title { margin-top: 2px; font-size: 38px; text-shadow: 0 2px 30px rgba(0, 0, 0, .4); }
.t-athletic .offer-cover .title { font-size: 50px; }
.offer-cover .desc { -webkit-line-clamp: 2; margin-top: 8px; }
/* Phones: athletic's square cover gets taller and its text smaller, so the words leave the photo's subject visible */
@media (max-width: 460px) {
  .t-athletic .offer-cover { aspect-ratio: 4 / 5; }
  .t-athletic .offer-cover .title { font-size: 40px; }
  .offer-cover .desc { -webkit-line-clamp: 1; }
}
/* Light pages: buttons on photo cards take the page's light button colors (--l-*, from render.js) like every other
   button, while the text and kicker keep the dark photo colors */
.offer-cover .btn, .premium .btn { background: var(--l-grad, var(--grad)); color: var(--l-on, var(--on-accent)); box-shadow: var(--l-ring, none); }
/* Editorial's light button is a dark pill, which disappears on a dark photo: there it keeps the photo's light pill */
.t-editorial .offer-cover .btn, .t-editorial .premium .btn { background: var(--grad); color: var(--on-accent); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .55); }
/* Portrait pictures (render.js adds .tall): the crop aims higher, where the face usually is */
.offer-cover > img.tall, .offer-media img.tall, .thumb img.tall { object-position: 50% 20%; }
.offer-pic { display: flex; flex-direction: column; }
.offer-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--well, var(--glass-2)); }
.offer-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform .9s var(--ease); }
.offer-media .offer-flag { position: absolute; top: 12px; left: 12px; margin: 0; }
.offer-body { padding: 16px 18px 18px; }
.offer-pic .row-title { font-size: 27px; }
.t-athletic .offer-pic .row-title { font-size: 30px; }
.offer-pic .row-desc { -webkit-line-clamp: 2; }
.offer-pic .row-foot { margin-top: 14px; gap: 10px 12px; flex-wrap: wrap; }
.offer-pic .row-foot .price { font-size: 19px; }
.t-athletic .offer-pic .row-foot .price { font-size: 30px; }
.offer .price small { margin-left: 2px; white-space: nowrap; }
.btn.sm { padding: 10px 15px; font-size: 13.5px; }
.t-athletic .btn.sm { padding: 10px 14px 9px; font-size: 15px; }
.thumb.pic { background: #0c0a0a; }

/* Section sizes: s = compact rows, l = large cards */
.sz-s { gap: 8px; }
.sz-s .card { border-radius: calc(var(--radius) - 6px); }
.sz-s .desc, .sz-s .row-desc, .sz-s .checks, .sz-s .chips, .sz-s .feature-media { display: none; }
.sz-s .row { padding: 10px; }
.sz-s .row-media { width: 56px; height: 56px; }
.sz-s .row-title { font-size: 18px; }
.sz-s .row-foot { margin-top: 4px; }
.sz-s .feature-body { padding: 14px 16px; }
.sz-s .featured .title, .sz-s .premium .title { font-size: 22px; }
.sz-s .buy { margin-top: 10px; }
.sz-s .premium { aspect-ratio: 16 / 9; }
.sz-s .thumb { width: 44px; height: 44px; }
.sz-s .link-row { padding: 8px 12px 8px 8px; }
.sz-s .media { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.sz-s .tile-body { padding: 8px 10px 10px; }
.sz-s .tile-title { font-size: 12.5px; }
.sz-l { gap: 16px; }
.sz-l .row { flex-direction: column; align-items: stretch; padding: 14px; }
.sz-l .row-media { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.sz-l .row-title { font-size: 28px; }
.t-athletic .sz-l .row-title { font-size: 32px; }
.sz-l .row-desc { font-size: 14.5px; -webkit-line-clamp: 5; }
.sz-l .link-row { padding: 14px 18px 14px 14px; }
.sz-l .thumb { width: 72px; height: 72px; }
.sz-l .lr-title { font-size: 18px; }
.sz-l .lr-sub { font-size: 14px; }
.sz-l .media { grid-template-columns: 1fr; }
.sz-l .code { padding: 22px 20px; }
.sz-l .offer-m { padding: 20px; }
.sz-l .offer-m .row-title { font-size: 28px; }

/* Light mode. render.js sets the colors that follow the creator's hue (--bg, --ink, --accent, --tint, --grad,
   --grad-ink, --on-accent); these are the rest. body.m-light always, body.m-auto when the phone is set to light:
   keep the two blocks the same. */
.m-light {
  --ink-2: color-mix(in srgb, var(--ink) 76%, transparent);
  --ink-3: color-mix(in srgb, var(--ink) 62%, transparent);
  --glass: rgba(255, 255, 255, .74);
  --glass-2: #fff;
  --well: color-mix(in srgb, var(--tint) 12%, #f3f1ee);
  --well-pill: color-mix(in srgb, var(--tint) 16%, #fff);
  --well-pill-ink: var(--ink);
  --line: rgba(30, 20, 15, .09);
  --line-hi: rgba(30, 20, 15, .2);
  --line-dash: rgba(30, 20, 15, .32);
  --field: #fff;
  --shadow: 0 1px 2px rgba(30, 20, 15, .04), 0 10px 28px -16px rgba(30, 20, 15, .18);
  --shadow-sm: 0 1px 2px rgba(30, 20, 15, .06);
  --pop-shadow: 0 10px 28px -10px rgba(30, 20, 15, .35);
  --ring: linear-gradient(160deg, #fff, rgba(255, 255, 255, .8));
  --ring-shadow: 0 0 0 1px rgba(30, 20, 15, .06), 0 0 0 7px rgba(255, 255, 255, .6), 0 18px 44px -16px rgba(30, 20, 15, .4);
  --bd-filter: blur(56px) saturate(1.2) brightness(1.12);
  --veil-0: 55%; --veil-1: 76%; --veil-2: 92%;
  --glow: 24%;
  --grain: .05;
}
@media (prefers-color-scheme: light) {
  .m-auto {
    --ink-2: color-mix(in srgb, var(--ink) 76%, transparent);
    --ink-3: color-mix(in srgb, var(--ink) 62%, transparent);
    --glass: rgba(255, 255, 255, .74);
    --glass-2: #fff;
    --well: color-mix(in srgb, var(--tint) 12%, #f3f1ee);
    --well-pill: color-mix(in srgb, var(--tint) 16%, #fff);
    --well-pill-ink: var(--ink);
    --line: rgba(30, 20, 15, .09);
    --line-hi: rgba(30, 20, 15, .2);
    --line-dash: rgba(30, 20, 15, .32);
    --field: #fff;
    --shadow: 0 1px 2px rgba(30, 20, 15, .04), 0 10px 28px -16px rgba(30, 20, 15, .18);
    --shadow-sm: 0 1px 2px rgba(30, 20, 15, .06);
    --pop-shadow: 0 10px 28px -10px rgba(30, 20, 15, .35);
    --ring: linear-gradient(160deg, #fff, rgba(255, 255, 255, .8));
    --ring-shadow: 0 0 0 1px rgba(30, 20, 15, .06), 0 0 0 7px rgba(255, 255, 255, .6), 0 18px 44px -16px rgba(30, 20, 15, .4);
    --bd-filter: blur(56px) saturate(1.2) brightness(1.12);
    --veil-0: 55%; --veil-1: 76%; --veil-2: 92%;
    --glow: 24%;
    --grain: .05;
  }
}

/* Small phones: athletic's square coaching photo gets taller so its title clears the tag; the price note stays on one line */
.premium .buy { flex-wrap: wrap; row-gap: 12px; }
.premium .price small { white-space: nowrap; }
@media (max-width: 360px) {
  .t-athletic .premium { aspect-ratio: 4 / 5; }
  .t-athletic .premium .title { font-size: 40px; }
}
