/* ============================================================
   Skewn — site.css
   Shared design system for skewn.app (LP / Privacy / Terms)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #0A0A0A;   /* page background (near black)      */
  --bg-2:      #0F0F0F;   /* raised surface                    */
  --bg-3:      #141414;   /* card / inset                      */
  --fg:        #F5F5F5;   /* primary text                      */
  --muted:     #9A9A9A;   /* secondary text                    */
  --muted-2:   #6B6B6B;   /* tertiary / labels                 */
  --faint:     #3A3A3A;   /* disabled / dots                   */
  --accent:    #E8FF00;   /* electric lime — use sparingly     */
  --accent-dim:rgba(232,255,0,0.10);
  --hairline:  #1A1A1A;   /* borders                           */
  --hairline-2:#262626;   /* stronger borders                  */

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 12vw, 160px);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* selection */
::selection { background: var(--accent); color: #0A0A0A; }

/* ---------- Mono label / eyebrow ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(232,255,0,0.6);
}

/* skewed accent word — brand device */
.skew {
  display: inline-block;
  transform: skewX(-12deg);
  font-style: normal;
  color: var(--accent);
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 {
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 16px 0 0;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  margin: 18px 0 0;
  max-width: 52ch;
}

/* corner-bracket frame device (echoes logo / camera UI) */
.framed { position: relative; }
.framed::before, .framed::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1.5px solid var(--accent);
  pointer-events: none;
}
.framed::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.framed::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #0A0A0A; }
.btn-primary:hover { background: #f2ff4d; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--hairline-2); }
.btn-ghost:hover { border-color: var(--muted-2); background: var(--bg-3); }
.btn .arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #0A0A0A;
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.btn-ghost .arrow { background: var(--accent); color: #0A0A0A; }

/* App store badge placeholders */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 16px;
  border-radius: 12px;
  background: var(--fg);
  color: #0A0A0A;
  border: 1px solid var(--fg);
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.store-badge:hover { background: #fff; transform: translateY(-2px); }
.store-badge .glyph { font-size: 24px; line-height: 1; }
.store-badge .glyph svg { width: 22px; height: 22px; display: block; }
.store-badge .tx { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .tx .s { font-size: 10px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.7; }
.store-badge .tx .l { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.store-badge.dark { background: var(--bg-3); color: var(--fg); border-color: var(--hairline-2); }
.store-badge.dark:hover { background: #1c1c1c; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .wm { display: inline-block; transform: skewX(-12deg); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .15s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }
.nav-burger { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn span.full { display: none; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 8vw, 80px) 40px;
  background: var(--bg);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 300px; }
.footer-brand .brand { font-size: 24px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted-2); font-size: 13px; line-height: 1.6; margin: 0; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 90px); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 11px;
  transition: color .15s var(--ease);
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom .mono { font-size: 11px; letter-spacing: 0.14em; }

/* ============================================================
   PHONE MOCKUP (shared, scalable) — used on the LP
   ============================================================ */
.phone {
  --pw: 300px;
  width: var(--pw);
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--pw) * 0.14);
  background: #000;
  padding: calc(var(--pw) * 0.03);
  position: relative;
  box-shadow:
    0 0 0 1.5px #1c1c1c,
    0 0 0 3px #0d0d0d,
    0 40px 90px rgba(0,0,0,0.6);
  flex-shrink: 0;
}
.phone .scr {
  width: 100%; height: 100%;
  border-radius: calc(var(--pw) * 0.11);
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.phone .island {
  position: absolute;
  top: calc(var(--pw) * 0.03);
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: calc(var(--pw) * 0.09);
  background: #000;
  border-radius: 99px;
  z-index: 20;
}

/* ---- mock: constraint screen ---- */
.m-constraint {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8% 6%;
}
.m-constraint .mono { font-size: 8px; letter-spacing: 0.24em; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.m-constraint .mono::before { content:""; width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent);}
.m-constraint .big {
  font-size: calc(var(--pw) * 0.115);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}
.m-constraint .big .skew { color: var(--accent); }
.m-constraint .meta { font-size: 9px; color: var(--muted); }
.m-constraint .meta b { color: var(--fg); }
.m-constraint .cta {
  margin-top: 22px;
  background: var(--accent);
  color: #0A0A0A;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- mock: camera slit ---- */
.m-camera { height: 100%; position: relative; background: #1f1f1f; }
.m-camera .prev {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,#3a3a3a 0%,#262626 45%,#1a1a1a 100%);
}
.m-camera .slit-t, .m-camera .slit-b { position:absolute; left:0; right:0; background:#000; z-index:3; }
.m-camera .slit-t { top:0; height:40%; }
.m-camera .slit-b { bottom:0; height:40%; }
.m-camera .edge { position:absolute; left:0; right:0; height:1px; background:rgba(232,255,0,0.4); z-index:4;}
.m-camera .edge.t { top:40%; } .m-camera .edge.b { top:60%; }
.m-camera .tag {
  position:absolute; top: 12%; left: 6%; z-index:6;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 9px; border-radius: 99px;
  font-size: 8px; font-weight: 600;
  display:flex; align-items:center; gap:6px;
}
.m-camera .tag::before { content:""; width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent);}
.m-camera .shutter {
  position:absolute; bottom: 7%; left:50%; transform: translateX(-50%);
  width: calc(var(--pw) * 0.17); aspect-ratio:1; border-radius:50%;
  background: var(--fg); border: 3px solid #0A0A0A; box-shadow: 0 0 0 2px var(--fg);
  z-index: 6;
}

/* ---- mock: feed ---- */
.m-feed { height:100%; display:flex; flex-direction:column; }
.m-feed .top { padding: 9% 7% 4%; display:flex; align-items:center; justify-content:space-between; }
.m-feed .top .b { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:800; letter-spacing:-0.03em;}
.m-feed .top .b img { width:15px;height:15px;border-radius:4px;}
.m-feed .top .b .wm { transform: skewX(-12deg); display:inline-block;}
.m-feed .top .d { font-family:var(--font-mono); font-size:8px; color:var(--muted-2); letter-spacing:0.14em;}
.m-feed .tabs { display:flex; gap:16px; padding:0 7% 0; border-bottom:1px solid var(--hairline); }
.m-feed .tab { padding:7px 0 9px; font-size:9px; color:var(--muted-2); position:relative;}
.m-feed .tab.on { color:var(--fg); font-weight:600;}
.m-feed .tab.on::after { content:""; position:absolute; left:0;right:0;bottom:-1px;height:2px;background:var(--accent);}
.m-feed .grid { padding: 6%; display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.m-feed .cell { aspect-ratio:1; border-radius:5px; overflow:hidden; position:relative; background:#2a2a2a;}
.m-feed .cell .ph { position:absolute; inset:0;}
.m-feed .cell .react {
  position:absolute; left:5px; bottom:5px;
  background:rgba(0,0,0,0.55); backdrop-filter:blur(4px);
  font-size:8px; font-weight:600; padding:2px 6px; border-radius:99px;
}

/* photo placeholder textures */
.ph-slit { background:#0a0a0a; }
.ph-slit::before { content:""; position:absolute; left:0;right:0;top:40%;height:20%; background:linear-gradient(90deg,#4a4a4a,#383838,#2d2d2d);}
.ph-slit.warm::before { background:linear-gradient(90deg,#5a5a52,#7a7a64,#3a3a30);}
.ph-slit.cool::before { background:linear-gradient(90deg,#3a4656,#566a82,#28323e);}
.ph-flat { background:linear-gradient(180deg,#3a3a3a,#222);}
.ph-sky  { background:linear-gradient(180deg,#6a85a8,#3a4d68 60%,#1f2a3a);}
.ph-ground { background:linear-gradient(180deg,#5a4a3a,#3a2f24);}

/* ---------- Legal page layout ---------- */
.legal { padding-block: clamp(48px, 8vw, 96px) clamp(64px, 10vw, 120px); }
.legal-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.legal-head .mono { display:block; margin-bottom: 18px; }
.legal-head h1 {
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 18px;
}
.legal-head .lede { color: var(--muted); font-size: clamp(15px,2vw,17px); margin: 0; max-width: 60ch; }
.legal-head .updated {
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); letter-spacing: 0.04em;
}
.legal-body { max-width: 760px; margin: 0 auto; }

/* table of contents */
.toc {
  max-width: 760px; margin: 0 auto clamp(40px,6vw,56px);
  padding: 22px 24px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--bg-2);
}
.toc h4 { margin:0 0 14px; font-family:var(--font-mono); font-size:10px; letter-spacing:0.2em; text-transform:uppercase; color:var(--muted-2); font-weight:500;}
.toc ol { margin:0; padding:0; list-style:none; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 9px; break-inside: avoid; }
.toc a { display:flex; gap:10px; font-size:13.5px; color:var(--muted); transition:color .15s var(--ease); }
.toc a:hover { color: var(--fg); }
.toc a .n { font-family:var(--font-mono); color:var(--accent); font-size:11px; min-width:18px; }
@media (max-width:600px){ .toc ol { columns: 1; } }

.legal-section { margin-bottom: clamp(40px, 6vw, 56px); scroll-margin-top: 88px; }
.legal-section > h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.legal-section > h2 .n {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.legal-section h3 {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  margin: 28px 0 10px; color: var(--fg);
}
.legal-section p { color: var(--muted); margin: 0 0 14px; font-size: 15.5px; }
.legal-section p strong, .legal-section li strong { color: var(--fg); font-weight: 600; }
.legal-section ul { margin: 0 0 16px; padding: 0; list-style: none; }
.legal-section ul li {
  position: relative; padding-left: 22px; margin-bottom: 10px;
  color: var(--muted); font-size: 15.5px;
}
.legal-section ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; background: var(--faint); border-radius: 1px;
  transform: skewX(-12deg);
}
.legal-section ul li.acc::before { background: var(--accent); }
.legal-section a.inline { color: var(--fg); border-bottom: 1px solid var(--hairline-2); }
.legal-section a.inline:hover { border-color: var(--accent); }

/* definition rows (e.g. external services) */
.def {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 18px 0;
}
.def .row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.def .row:last-child { border-bottom: 0; }
.def .row .k { font-weight: 600; color: var(--fg); font-size: 14.5px; }
.def .row .v { color: var(--muted); font-size: 14.5px; }
@media (max-width:600px){ .def .row { grid-template-columns: 1fr; gap: 6px; } }

/* callout */
.callout {
  border: 1px solid var(--hairline-2);
  border-left: 2px solid var(--accent);
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 22px 0;
}
.callout p { margin: 0; color: var(--muted); font-size: 14px; }
.callout p strong { color: var(--fg); }

/* back-to-top / contact block */
.legal-contact {
  max-width: 760px; margin: clamp(48px,7vw,72px) auto 0;
  padding: 28px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--bg-2);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.legal-contact .t h3 { margin:0 0 6px; font-size:18px; font-weight:700; letter-spacing:-0.01em; }
.legal-contact .t p { margin:0; color:var(--muted); font-size:14px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
