/* ── Personal Portfolio · Paulo M ─────────────────────────────────────── */

:root {
  /* Default: Warm & Cozy palette */
  --bg:        #F4EFE6;
  --bg-2:      #EAE2D2;
  --bg-3:      #1F1A14;     /* deep cocoa */
  --bg-4:      #2A2218;
  --ink:       #1F1A14;
  --ink-soft:  #564A3A;
  --ink-muted: #8B7E6B;
  --paper:     #FAF6EC;
  --accent:    #C25B3F;     /* terracotta */
  --accent-2:  #6B8266;     /* sage */
  --accent-3:  #D9A441;     /* mustard */
  --line:      rgba(31,26,20,.12);
  --line-soft: rgba(31,26,20,.06);
  --on-dark:   #F4EFE6;
  --on-dark-soft: rgba(244,239,230,.62);
  --on-dark-line: rgba(244,239,230,.14);

  /* Type */
  --f-display: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --f-body:    "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Geometry */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Cursor accent (live updated by JS) */
  --mx: 50%;
  --my: 50%;
}

/* ── Palette variants ─────────────────────────────────────────────────── */
[data-palette="playful"] {
  --bg:        #FAFAF7;
  --bg-2:      #F0EDE2;
  --bg-3:      #0F0F0F;
  --bg-4:      #1B1B1B;
  --ink:       #0F0F0F;
  --ink-soft:  #3F3F3F;
  --ink-muted: #7E7E7E;
  --paper:     #FFFFFF;
  --accent:    #FF5A4E;
  --accent-2:  #2E6FF2;
  --accent-3:  #F5D547;
  --line:      rgba(15,15,15,.12);
  --line-soft: rgba(15,15,15,.06);
}
[data-palette="editorial"] {
  --bg:        #EAE6DD;
  --bg-2:      #DCD6C7;
  --bg-3:      #14213D;
  --bg-4:      #1B2A4D;
  --ink:       #14213D;
  --ink-soft:  #3F4A66;
  --ink-muted: #7B8298;
  --paper:     #F5F1E6;
  --accent:    #C9A227;
  --accent-2:  #A14A2C;
  --accent-3:  #6F8DAA;
  --line:      rgba(20,33,61,.14);
  --line-soft: rgba(20,33,61,.06);
}
[data-palette="forest"] {
  --bg:        #ECE9DF;
  --bg-2:      #DCD8C7;
  --bg-3:      #1A2A1F;
  --bg-4:      #243527;
  --ink:       #1A2A1F;
  --ink-soft:  #3D4F40;
  --ink-muted: #7B8B7C;
  --paper:     #F4F1E6;
  --accent:    #8B5A2B;
  --accent-2:  #5E7C5A;
  --accent-3:  #D9A441;
  --line:      rgba(26,42,31,.12);
  --line-soft: rgba(26,42,31,.06);
}

/* ── Dark mode ────────────────────────────────────────────────────────── */
[data-mode="dark"] {
  --bg:        #161210;
  --bg-2:      #1F1A14;
  --bg-3:      #0C0907;
  --bg-4:      #100C09;
  --ink:       #F4EFE6;
  --ink-soft:  #C7BFAE;
  --ink-muted: #8B7E6B;
  --paper:     #1F1A14;
  --line:      rgba(244,239,230,.12);
  --line-soft: rgba(244,239,230,.05);
}
[data-mode="dark"][data-palette="playful"] {
  --bg:        #0F0F0F;
  --bg-2:      #1B1B1B;
  --bg-3:      #050505;
  --bg-4:      #0A0A0A;
  --ink:       #FAFAF7;
  --ink-soft:  #C7C7C7;
  --ink-muted: #7E7E7E;
  --paper:     #1B1B1B;
  --line:      rgba(250,250,247,.12);
  --line-soft: rgba(250,250,247,.05);
}
[data-mode="dark"][data-palette="editorial"] {
  --bg:        #0E1626;
  --bg-2:      #14213D;
  --bg-3:      #070B14;
  --bg-4:      #0A1020;
  --ink:       #EAE6DD;
  --ink-soft:  #B8B0A0;
  --ink-muted: #7B8298;
  --paper:     #14213D;
  --line:      rgba(234,230,221,.12);
  --line-soft: rgba(234,230,221,.05);
}
[data-mode="dark"][data-palette="forest"] {
  --bg:        #0E1410;
  --bg-2:      #1A2A1F;
  --bg-3:      #060906;
  --bg-4:      #0A100C;
  --ink:       #ECE9DF;
  --ink-soft:  #B8B5A6;
  --ink-muted: #7B8B7C;
  --paper:     #1A2A1F;
  --line:      rgba(236,233,223,.12);
  --line-soft: rgba(236,233,223,.05);
}

/* ── Type variants ────────────────────────────────────────────────────── */
[data-type="modern"] {
  --f-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --f-body:    "Geist", "Inter", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;
}
[data-type="quirky"] {
  --f-display: "Boldonse", "Newsreader", Georgia, serif;
  --f-body:    "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-mono:    "DM Mono", "JetBrains Mono", ui-monospace, monospace;
}
[data-type="editorial"] {
  --f-display: "Newsreader", "Source Serif 4", Georgia, serif;
  --f-body:    "Inter Tight", "Inter", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
}

/* ── Reset & base ─────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--paper); }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.serif { font-family: var(--f-display); font-weight: 400; }
.it { font-style: italic; }

.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .shell { padding: 0 20px; }
}

/* ── Reveal-on-scroll ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Sticky top nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
}
.nav-logo .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: transform .2s;
}
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero-cursor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px 600px at var(--mx) var(--my),
    color-mix(in oklab, var(--accent) 22%, transparent),
    transparent 70%
  );
  transition: background-position .15s ease-out;
  z-index: 0;
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  animation: drift 22s ease-in-out infinite;
}
.hero-shapes .s1 { width: 320px; height: 320px; top: 8%; right: -60px; background: var(--accent); opacity: .35; }
.hero-shapes .s2 { width: 260px; height: 260px; bottom: -40px; left: -40px; background: var(--accent-2); opacity: .35; animation-delay: -7s; }
.hero-shapes .s3 { width: 180px; height: 180px; top: 50%; left: 60%; background: var(--accent-3); opacity: .25; animation-delay: -13s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px,-30px) scale(1.08); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2BA66B;
  box-shadow: 0 0 0 0 #2BA66B;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, #2BA66B 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 9.5vw, 148px);
  line-height: .96;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
  position: relative;
  z-index: 1;
}
.hero-title .it { font-style: italic; color: var(--accent); }
.hero-title .strike {
  text-decoration-line: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  color: var(--ink-muted);
}

.hero-sub {
  margin-top: 28px;
  max-width: 580px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.hero-meta {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 700px;
}
.hero-meta dt {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1;
}

/* Hero layout variants */
[data-hero="split"] .hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
[data-hero="split"] .hero-side {
  display: flex; flex-direction: column; gap: 18px;
  align-self: stretch;
  justify-content: center;
}
[data-hero="centered"] .hero-grid { text-align: center; }
[data-hero="centered"] .hero-meta { margin-left: auto; margin-right: auto; }
[data-hero="centered"] .hero-eyebrow,
[data-hero="centered"] .hero-sub { margin-left: auto; margin-right: auto; }
[data-hero="centered"] .hero-sub { display: block; }
[data-hero="stacked"] .hero-side { display: none; }

@media (max-width: 900px) {
  [data-hero="split"] .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  [data-hero="split"] .hero-side { display: none; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
}

/* "Now brewing" widget */
.brew {
  position: relative;
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 40px -28px rgba(0,0,0,.18);
  z-index: 1;
}
.brew-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.brew-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.brew-tag .blink {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s steps(2,end) infinite;
}
@keyframes blink { 50% { opacity: .25; } }
.brew-title { font-family: var(--f-display); font-size: 26px; line-height: 1.1; }
.brew-line { font-size: 14px; color: var(--ink-soft); margin: 8px 0 14px; }
.brew-bar {
  height: 6px; border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  overflow: hidden;
}
.brew-bar > i {
  display: block; height: 100%; width: 64%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  border-radius: inherit;
  animation: brewfill 6s ease-in-out infinite alternate;
}
@keyframes brewfill { from { width: 38%; } to { width: 76%; } }
.brew-meta {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--ink-muted); letter-spacing: .1em; text-transform: uppercase;
}

/* ── Marquee ──────────────────────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 56px;
  padding: 22px 0;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: var(--f-display);
  font-size: 28px;
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; color: var(--ink); }
.marquee-track .star { color: var(--accent); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ── Apps grid ────────────────────────────────────────────────────────── */
.apps {
  background: var(--bg-3);
  color: var(--on-dark);
  padding: 110px 0 130px;
  position: relative;
}
.apps .section-head { color: var(--on-dark); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.section-head .kicker {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 14px;
}
.apps .section-head .kicker { color: var(--on-dark-soft); }
.section-head .lead {
  max-width: 360px;
  font-size: 16px;
  color: var(--ink-soft);
}
.apps .section-head .lead { color: var(--on-dark-soft); }
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

.app-grid {
  display: grid;
  gap: 18px;
}
[data-grid="masonry"] .app-grid {
  grid-template-columns: repeat(12, 1fr);
}
[data-grid="masonry"] .app-card:nth-child(6n+1) { grid-column: span 5; }
[data-grid="masonry"] .app-card:nth-child(6n+2) { grid-column: span 4; }
[data-grid="masonry"] .app-card:nth-child(6n+3) { grid-column: span 3; }
[data-grid="masonry"] .app-card:nth-child(6n+4) { grid-column: span 4; }
[data-grid="masonry"] .app-card:nth-child(6n+5) { grid-column: span 3; }
[data-grid="masonry"] .app-card:nth-child(6n+6) { grid-column: span 5; }

[data-grid="uniform"] .app-grid {
  grid-template-columns: repeat(3, 1fr);
}
[data-grid="rows"] .app-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
[data-grid="rows"] .app-card {
  border-radius: 0;
  border-bottom: 1px solid var(--on-dark-line);
  border-top: 0; border-left: 0; border-right: 0;
}
[data-grid="rows"] .app-card:first-child { border-top: 1px solid var(--on-dark-line); }
[data-grid="rows"] .app-card .app-card-inner { flex-direction: row; align-items: center; gap: 28px; }
[data-grid="rows"] .app-card .phone { width: 110px; height: 220px; }

@media (max-width: 1100px) {
  [data-grid="masonry"] .app-grid { grid-template-columns: repeat(6,1fr); }
  [data-grid="masonry"] .app-card { grid-column: span 3 !important; }
  [data-grid="uniform"] .app-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  [data-grid="masonry"] .app-card,
  [data-grid="uniform"] .app-grid { grid-column: span 6 !important; grid-template-columns: 1fr; }
  [data-grid="rows"] .app-card .app-card-inner { flex-direction: column; align-items: flex-start; }
}

.app-card {
  position: relative;
  border-radius: var(--r-md);
  background: var(--bg-4);
  border: 1px solid var(--on-dark-line);
  padding: 28px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s, border-color .35s;
  cursor: pointer;
  min-height: 360px;
}
.app-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 420px at var(--mx) var(--my),
    color-mix(in oklab, var(--card-tint, var(--accent)) 28%, transparent),
    transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.app-card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--card-tint, var(--accent)) 50%, transparent); }
.app-card:hover::before { opacity: 1; }
.app-card-inner {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%; gap: 18px;
}
.app-card .app-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark-soft);
}
.app-card .app-meta .cat { color: var(--on-dark); }
.app-card .app-name {
  font-family: var(--f-display); font-size: 32px; line-height: 1; margin: 0;
}
.app-card .app-tag { font-size: 14px; color: var(--on-dark-soft); margin: 2px 0 0; }
.app-card .app-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.app-card .play-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--card-tint, var(--accent)) 90%, white 0%);
  color: #fff;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  transition: transform .2s, background .2s;
}
.app-card .play-btn:hover { transform: translateX(2px); }
.app-card .stars {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--on-dark);
}
.app-card .stars .star { color: var(--accent-3); }

.app-card.coming {
  background: transparent;
  border-style: dashed;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  cursor: default;
}
.app-card.coming:hover { transform: none; }
.app-card.coming .app-card-inner { align-items: center; justify-content: center; gap: 16px; }
.app-card.coming .app-name { font-size: 36px; }
.app-card.coming .blink-dots::after {
  content: "...";
  animation: dots 1.4s steps(4,end) infinite;
  display: inline-block;
  width: 1ch;
  text-align: left;
  overflow: hidden;
}
@keyframes dots {
  0% { width: 0; } 100% { width: 1.5ch; }
}

/* Phone mockup */
.phone {
  width: 170px;
  height: 340px;
  border-radius: 28px;
  background: linear-gradient(160deg, #2A2218, #15110D);
  padding: 6px;
  position: relative;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.04),
    inset 0 1px 0 rgba(255,255,255,.06),
    0 30px 40px -20px rgba(0,0,0,.55);
  margin: 0 auto;
  flex-shrink: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.app-card:hover .phone { transform: rotate(-2deg) translateY(-6px); }
.phone .screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 22px;
  overflow: hidden;
}
.phone .punch {
  position: absolute;
  top: 8px; left: 50%;
  width: 8px; height: 8px;
  background: #0A0805;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

/* ── Featured spotlight ───────────────────────────────────────────────── */
.featured {
  background: var(--accent);
  color: var(--paper);
  padding: 130px 0 140px;
  position: relative;
  overflow: hidden;
}
[data-mode="dark"] .featured { color: var(--paper); }
.featured::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 20% 0%, color-mix(in oklab, white 12%, transparent), transparent 70%),
    radial-gradient(600px 600px at 90% 100%, color-mix(in oklab, black 14%, transparent), transparent 70%);
  pointer-events: none;
}
.featured-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.featured-side .kicker {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .8;
}
.featured-side h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .98;
  margin: 16px 0 24px;
  letter-spacing: -.015em;
}
.featured-side h3 .ulines { text-decoration: underline wavy; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.featured-side p {
  font-size: 18px; line-height: 1.55;
  max-width: 460px; opacity: .92;
  margin: 0 0 28px;
}
.feat-bullets {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid; gap: 10px;
}
.feat-bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px;
}
.feat-bullets li::before {
  content: "✦";
  color: var(--paper);
  margin-top: 2px;
}
.feat-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase;
  transition: transform .2s;
}
.feat-cta:hover { transform: translateY(-2px); }
.feat-cta.is-disabled { cursor: not-allowed; pointer-events: none; }
.feat-cta.is-disabled:hover { transform: none; }
.featured-phone-stage {
  display: flex; justify-content: center;
  position: relative;
}
.featured-phone-stage .phone { width: 280px; height: 560px; }
.featured-phone-stage .phone.sm {
  width: 200px; height: 400px;
  position: absolute;
  right: 4%;
  bottom: -20px;
  transform: rotate(8deg);
}
.featured-phone-stage .phone.tag {
  position: absolute;
  left: -10%;
  top: 4%;
  width: 160px; height: 60px;
  border-radius: 14px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}
@media (max-width: 980px) {
  .featured-grid { grid-template-columns: 1fr; gap: 60px; }
  .featured-phone-stage .phone.sm { right: 8%; bottom: -10px; }
}

/* ── Stats ────────────────────────────────────────────────────────────── */
.stats {
  padding: 110px 0;
  background: var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid .stat {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stats-grid .stat:last-child { border-right: 0; }
.stats-grid .stat.lead-cell { background: var(--accent-2); color: var(--paper); }
[data-palette="playful"] .stats-grid .stat.lead-cell { color: white; }
.stats-grid .stat .num {
  font-family: var(--f-display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  margin-bottom: 14px;
}
.stats-grid .stat .num small {
  font-size: .35em;
  vertical-align: 22px;
  margin-left: 4px;
  color: var(--ink-muted);
}
.stats-grid .stat.lead-cell .num small { color: color-mix(in oklab, var(--paper) 70%, transparent); }
.stats-grid .stat .lbl {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.stats-grid .stat.lead-cell .lbl { color: color-mix(in oklab, var(--paper) 80%, transparent); }
.stats-grid .stat .lead-text {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1.1;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-grid .stat:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* ── About ────────────────────────────────────────────────────────────── */
.about {
  padding: 120px 0;
  background: var(--bg-2);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-grid .pill-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.about-grid .pill {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.about-grid h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  margin: 0 0 24px;
  letter-spacing: -.012em;
}
.about-grid h2 .it { font-style: italic; color: var(--accent); }
.about-grid p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 540px;
}
.portrait {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg,
      color-mix(in oklab, var(--accent) 35%, var(--paper)) 0%,
      color-mix(in oklab, var(--accent-2) 35%, var(--paper)) 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(0,0,0,.25);
}
.portrait::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      color-mix(in oklab, var(--ink) 4%, transparent) 0 12px,
      transparent 12px 24px);
}
.portrait .label {
  position: absolute;
  inset: auto 16px 16px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  padding: 10px 12px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 1;
}
.portrait.has-photo::before { display: none; }
.portrait.has-photo {
  background: var(--paper);
}
.portrait .sticker {
  position: absolute;
  top: 16px; right: 16px;
  width: 86px; height: 86px;
  z-index: 2;
  border-radius: 50%;
  background: var(--accent-3);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 14px; line-height: 1.05;
  text-align: center;
  transform: rotate(-12deg);
  border: 1.5px dashed var(--ink);
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Testimonials ─────────────────────────────────────────────────────── */
.testi {
  padding: 120px 0;
  background: var(--bg-3);
  color: var(--on-dark);
}
.testi .section-head h2,
.testi .section-head .kicker,
.testi .section-head .lead { color: var(--on-dark); }
.testi .section-head .kicker, .testi .section-head .lead { color: var(--on-dark-soft); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  padding: 28px;
  border-radius: var(--r-md);
  background: var(--bg-4);
  border: 1px solid var(--on-dark-line);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s, border-color .3s;
}
.testi-card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 50%, transparent); }
.testi-card .stars { color: var(--accent-3); letter-spacing: 4px; font-size: 18px; }
.testi-card .quote { font-family: var(--f-display); font-size: 20px; line-height: 1.35; margin: 0; }
.testi-card .who {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
}
.testi-card .ava {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: var(--paper);
  font-family: var(--f-mono); font-size: 12px;
}
.testi-card .name { font-size: 13px; }
.testi-card .name small {
  display: block;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--on-dark-soft);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Newsletter ───────────────────────────────────────────────────────── */
.news {
  padding: 110px 0;
  background: var(--bg);
  position: relative;
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: .15;
  filter: blur(20px);
}
.news-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  margin: 0 0 14px;
}
.news-card p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 420px;
}
.news-form {
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.news-form .row {
  display: flex; gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  padding: 6px;
}
.news-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  outline: 0;
}
.news-form button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s;
}
.news-form button:hover { transform: translateY(-1px); }
.news-form .hint {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .1em;
  color: var(--ink-muted);
  text-transform: uppercase;
  text-align: center;
}
@media (max-width: 900px) {
  .news-card { grid-template-columns: 1fr; padding: 36px; }
}

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact {
  padding: 120px 0 100px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .98;
  margin: 0 0 24px;
  letter-spacing: -.012em;
}
.contact h2 .it { font-style: italic; color: var(--accent); }
.contact .lead { font-size: 18px; color: var(--ink-soft); max-width: 480px; line-height: 1.55; }
.contact-list { display: grid; gap: 4px; }
.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
  position: relative;
  transition: padding .25s;
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row:hover { padding-left: 12px; }
.contact-row .k {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-row .v { font-family: var(--f-display); font-size: 24px; }
.contact-row a { color: inherit; }
.contact-row a:hover { color: var(--accent); }
.contact-row .arrow {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--ink-muted);
  transition: transform .25s, color .25s;
}
.contact-row:hover .arrow { transform: translateX(6px); color: var(--accent); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-row { grid-template-columns: 100px 1fr auto; }
  .contact-row .v { font-size: 18px; }
}

/* ── Big CTA Footer ───────────────────────────────────────────────────── */
.foot {
  background: var(--bg-3);
  color: var(--on-dark);
  padding: 90px 0 32px;
  position: relative;
  overflow: hidden;
}
.foot-cta {
  position: relative;
  text-align: center;
  padding: 24px 0 80px;
}
.foot-cta .small {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 18px;
}
.foot-cta h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(72px, 13vw, 220px);
  line-height: .92;
  margin: 0;
  letter-spacing: -0.025em;
}
.foot-cta h2 .it { font-style: italic; color: var(--accent); }
.foot-cta a.big {
  display: inline-block;
  margin-top: 36px;
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .2s, background .2s;
}
.foot-cta a.big:hover { transform: translateY(-2px) scale(1.02); }

.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--on-dark-line);
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-soft);
  flex-wrap: wrap;
  gap: 16px;
}
.foot-bottom .links { display: flex; gap: 22px; }
.foot-bottom a:hover { color: var(--on-dark); }

/* Easter egg flag */
[data-egg="on"] {
  --accent: #FF5A4E !important;
  --accent-2: #2E6FF2 !important;
  --accent-3: #F5D547 !important;
}
[data-egg="on"] .hero-title::after {
  content: " 🎉";
  font-size: .6em;
  display: inline-block;
  animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* In-testing ribbon */
.app-card { }
.ribbon {
  position: absolute;
  bottom: 36px;
  right: -50px;
  width: 260px;
  z-index: 3;
  transform: rotate(-30deg);
  pointer-events: none;
  background: var(--accent-3);
  color: var(--bg-3);
  text-align: center;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 7px 50px 7px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 22px -8px rgba(0,0,0,.55),
    inset 0 0 0 1px color-mix(in oklab, var(--bg-3) 16%, transparent);
}
.ribbon::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 0; height: 0;
  border: 8px solid transparent;
  border-top-color: color-mix(in oklab, var(--accent-3) 65%, black);
}
.ribbon::after  { right: 4px; border-left-color:  color-mix(in oklab, var(--accent-3) 65%, black); border-left-width: 0; }
.ribbon-text {
  display: block;
  font-weight: 700;
}
/* Disabled play-store CTA on testing cards */
.app-card:has(.ribbon) .play-btn {
  background: #8A8378;
  color: #FAF6EC;
  opacity: .85;
}
.app-card.is-disabled { cursor: not-allowed; }

/* utility */
.hidden { display: none !important; }
