/*
Theme Name: YTZ
Theme URI: https://ytz.app
Author: Ideam LLC
Author URI: https://ideam.io
Description: Marketing theme for YTZ — a five-dice scoring game by Ideam. Classic (non-FSE) theme: a WebGL/canvas hero and coverflow screenshots ship as hand-coded markup the block editor can't mangle. The homepage is an insertable block pattern rendered edge-to-edge by front-page.php; inner pages (e.g. the Privacy Policy) use a centered readable column. Pure-black, minimal, single-red accent — a sibling to the Ideam studio theme.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ytz
Tags: one-page, custom-logo, custom-menu, full-width-template, translation-ready
*/

/* ============================================================
   YTZ — shared base (every page inherits this)
   Tokens · reset · shared components (lockup, eyebrow, CTA
   module, app-view treatments, "respect" grid, footer, footnote)
   Page-specific styles live in assets/css/home.css and in the
   self-contained Privacy Policy block — NOT here.
   ============================================================ */

:root{
  --bg:#000;
  --bg-card:#0a0a0a;
  --fg:#ffffff;
  --fg-soft:#ededed;
  --muted:#8c8c8c;
  --muted-2:#585858;
  --faint:#272727;
  --line:rgba(255,255,255,.08);
  --line-2:rgba(255,255,255,.15);
  --accent:#ff3b30;

  /* baked baselines (formerly tweak hooks) */
  --h-scale:0.85;       /* heading scale baseline */
  --pad-scale:0.82;     /* section density baseline (compact) */

  --max:1180px;
  --gut:clamp(22px,5vw,72px);
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }

html,body{margin:0;padding:0;background:var(--bg);color:var(--fg-soft)}
body{
  font-family:'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  font-feature-settings:"ss01","cv05","cv11";
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
::selection{background:var(--accent);color:#000}

h1,h2,h3,h4{
  font-family:'Rajdhani', ui-sans-serif, system-ui, sans-serif;
  font-weight:600;
  margin:0;
  letter-spacing:-.01em;
  line-height:1.02;
}

.wrap{max-width:var(--max);margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}
.accent{color:var(--accent)}
.muted{color:var(--muted)}

/* ---------- eyebrow / section index ---------- */
.eyebrow{
  display:inline-flex;align-items:center;gap:.7em;
  font-family:'Inter', sans-serif;
  font-size:11px;font-weight:500;line-height:1;
  letter-spacing:.24em;text-transform:uppercase;
  color:var(--muted);
}
.eyebrow .num{color:var(--muted-2);font-variant-numeric:tabular-nums}
.eyebrow .dot{
  width:4px;height:4px;border-radius:50%;background:var(--accent);
  box-shadow:0 0 10px var(--accent);flex:none;
}

/* ---------- brand lockup ---------- */
.lockup{display:inline-flex;align-items:center;gap:.6em}
.lockup .mark{
  width:1.5em;height:1.5em;border-radius:.28em;display:block;
  outline:1px solid var(--line-2);outline-offset:0;flex:none;
}
.lockup .mark svg{width:100%;height:100%;display:block}
.lockup .word{
  font-family:'Rajdhani', sans-serif;font-weight:600;
  letter-spacing:.02em;line-height:1;color:var(--fg);
}

/* ---------- hero animation slot ---------- */
.anim-slot{
  position:relative;width:100%;background:#000;overflow:hidden;
  border-radius:2px;
}
.anim-slot iframe{
  display:block;width:100%;height:100%;border:0;background:#000;
}
/* placeholder hint shown only if iframe fails to load */
.anim-slot .slot-hint{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-family:'Inter',monospace;font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--muted-2);pointer-events:none;z-index:-1;
}

/* ---------- CTA module (swappable, fixed footprint) ---------- */
.cta{min-height:30px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.cta .cta-pre{
  display:none;align-items:center;gap:.7em;
  font-family:'Inter',sans-serif;font-size:13px;font-weight:500;
  letter-spacing:.04em;color:var(--muted);
}
.cta .cta-pre .pulse{
  width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none;
  box-shadow:0 0 0 0 var(--accent);
  animation:ctaPulse 2.8s var(--ease) infinite;
}
@keyframes ctaPulse{
  0%{box-shadow:0 0 0 0 rgba(255,59,48,.5)}
  70%{box-shadow:0 0 0 9px rgba(255,59,48,0)}
  100%{box-shadow:0 0 0 0 rgba(255,59,48,0)}
}
.cta .cta-launched{display:inline-flex;gap:40px;align-items:center;flex-wrap:wrap;justify-content:center;}
.cta .cta-launched a{display:inline-flex;transition:opacity .15s var(--ease),transform .15s var(--ease)}
.cta .cta-launched a:hover{opacity:.85;transform:translateY(-1px)}
.cta .cta-launched img{height:64px;width:auto;display:block}

body[data-cta="launched"] .cta .cta-pre{display:none}
body[data-cta="launched"] .cta .cta-launched{display:inline-flex}

/* ---------- app view treatments ---------- */
.appview{position:relative;width:100%;max-width:340px}
.appview .screen{display:block;width:100%;height:auto;border-radius:34px}

/* thin: subtle hairline frame */
.appview[data-frame="thin"] .stage{
  border:1px solid var(--line-2);border-radius:40px;padding:0;overflow:hidden;
  background:#000;box-shadow:0 40px 120px -50px rgba(0,0,0,.9);
}
.appview[data-frame="thin"] .screen{border-radius:39px}

/* device: CSS bezel + dynamic island */
.appview[data-frame="device"] .stage{
  position:relative;border:1px solid var(--line-2);border-radius:52px;
  padding:10px;background:linear-gradient(160deg,#1c1c1e,#0a0a0a 60%);
  box-shadow:0 50px 140px -50px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,255,255,.04);
}
.appview[data-frame="device"] .screen{border-radius:42px}
.appview[data-frame="device"] .stage::after{
  content:"";position:absolute;top:20px;left:50%;transform:translateX(-50%);
  width:30%;max-width:104px;height:26px;background:#000;border-radius:14px;
  z-index:2;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
}

/* crop: edge-to-edge, square-ish corners, hides baked rounding */
.appview[data-frame="crop"] .stage{
  border-radius:14px;overflow:hidden;border:1px solid var(--line);
  background:#000;box-shadow:0 40px 120px -50px rgba(0,0,0,.9);
}
.appview[data-frame="crop"] .screen{
  border-radius:0;transform:scale(1.045);transform-origin:center;
}

/* none: bare image — the screenshot already carries its own outline.
   No frame, just a soft drop shadow to ground it on black. */
.appview[data-frame="none"] .stage{
  border:0;background:transparent;padding:0;border-radius:0;
  filter:drop-shadow(0 40px 90px rgba(0,0,0,.6));
}
.appview[data-frame="none"] .screen{border-radius:0}

/* ---------- "Made to respect you" grid ---------- */
.respect{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.respect .cell{
  background:var(--bg);padding:clamp(28px,3.4vw,44px);
  display:flex;flex-direction:column;gap:14px;position:relative;
  transition:background .3s var(--ease);
}
.respect .cell:hover{background:#070707}
.respect .cell h3{
  font-size:calc(clamp(23px,2.1vw,30px) * var(--h-scale));
  font-weight:600;letter-spacing:-.005em;color:var(--fg);
}
.respect .cell p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.55;max-width:42ch}
.respect .cell .lead-x{
  font-family:'Inter';font-size:10px;font-weight:600;letter-spacing:.26em;
  text-transform:uppercase;color:var(--muted-2);margin-bottom:2px;
}
.price-tag{
  display:inline-flex;align-items:center;gap:.4em;margin-top:4px;
  font-family:'Rajdhani',sans-serif;font-weight:600;color:var(--fg);
}
.price-tag .amt{font-size:calc(34px * var(--h-scale));line-height:.9;letter-spacing:-.01em}
.price-tag .once{font-size:12px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-family:'Inter'}
.footnote{
  font-size:11.5px;color:var(--muted-2);letter-spacing:.01em;line-height:1.5;
}
.footnote sup{color:var(--accent);font-size:.9em;margin-right:.2em}

/* ---------- Ideam section ---------- */
.ideam .link{
  color:var(--fg);text-decoration:none;
  border-bottom:1px solid var(--line-2);padding-bottom:1px;
  transition:border-color .2s var(--ease),color .2s var(--ease);
}
.ideam .link:hover{border-color:var(--accent)}
.ideam .mail{color:var(--accent);border-bottom:1px solid transparent;transition:border-color .2s var(--ease)}
.ideam .mail:hover{border-color:var(--accent)}

/* ---------- footer ---------- */
.site-foot{border-top:1px solid var(--line);padding:36px 0 32px;color:var(--muted)}
.site-foot .row{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;
  font-size:12.5px;letter-spacing:.02em;
}
.site-foot .foot-copy{justify-self:start}
.site-foot .legal{justify-self:center}
.site-foot .foot-priv{justify-self:end}
.site-foot .foot-priv a{color:inherit;text-decoration:none;transition:color 180ms ease}
.site-foot .foot-priv a:hover{color:var(--accent, #ff3b30)}
.site-foot .foot-sep{padding: 0 10px; color: rgba(255,255,255,.25)}
@media (max-width:520px){
  .site-foot .row{grid-template-columns:1fr;justify-items:center;gap:14px;text-align:center}
}
.site-foot .row .sep{color:var(--muted-2);margin:0 .2em}
.site-foot a{color:var(--muted);transition:color .2s var(--ease)}
.site-foot a:hover{color:var(--fg)}
.site-foot .legal{display:inline-flex;align-items:center;gap:.5em}
.site-foot .fineprint{
  display:block; text-align: center;
  font-size:10px;letter-spacing:.02em;
  opacity: 0.5; margin: 32px auto 0;
}

/* ---------- reveal on scroll ---------- */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.reveal.in{opacity:1;transform:none}
body[data-motion="off"] .reveal{opacity:1!important;transform:none!important;transition:none!important}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1!important;transform:none!important;transition:none}
  .cta .cta-pre .pulse{animation:none}
}
body[data-motion="off"] .cta .cta-pre .pulse{animation:none}

/* shared focus ring for a11y */
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}

/* ---------- inner-page container (page.php default template) ---------- */
.ytz-page{padding:clamp(48px,8vw,110px) 0 clamp(64px,10vw,120px)}
.ytz-page .entry{max-width:760px;margin:0 auto;padding:0 var(--gut)}
.ytz-page .entry h1{
  font-weight:600;font-size:clamp(40px,6vw,72px);letter-spacing:-.022em;line-height:1.02;
  color:var(--fg);margin:0 0 clamp(20px,3vw,32px);
}
.ytz-page .entry h2{font-weight:600;font-size:clamp(26px,3.2vw,36px);letter-spacing:-.012em;color:var(--fg);margin:clamp(36px,5vw,52px) 0 16px}
.ytz-page .entry h3{font-weight:600;font-size:clamp(20px,2.4vw,26px);color:var(--fg);margin:28px 0 12px}
.ytz-page .entry p{font-size:16px;line-height:1.72;color:#b9b9b9;margin:0 0 18px;text-wrap:pretty}
.ytz-page .entry a{color:var(--accent);border-bottom:1px solid transparent;transition:border-color .2s var(--ease)}
.ytz-page .entry a:hover{border-color:var(--accent)}
.ytz-page .entry ul,.ytz-page .entry ol{color:#b9b9b9;line-height:1.72;padding-left:1.2em;margin:0 0 18px}
.ytz-page .entry li{margin:0 0 8px}
.ytz-page .entry img{border-radius:12px;margin:24px 0}
.ytz-page .entry blockquote{border-left:2px solid var(--accent);margin:24px 0;padding:4px 0 4px 20px;color:var(--fg-soft)}

/* full-width template: no container, edge-to-edge.
   Kills the .ytz-page vertical padding too, so full-bleed content (e.g. the
   Privacy Policy block: sticky bar + constellation header) sits flush at top. */
.ytz-full{padding:0}
.ytz-full > .entry{max-width:none;margin:0;padding:0}
