/* Pico: Pomodoro Timer — warm cream + tomato coral */
:root {
  --cream: #FBF4EA;
  --cream-2: #F3E6D6;
  --paper: #FFFBF5;
  --ink: #3A2A24;
  --ink-soft: #6B574E;
  --muted: #9A877C;
  --tomato: #E85A45;
  --tomato-deep: #D14A38;
  --coral: #F3814B;
  --coral-soft: #F7B089;
  --leaf: #6F9A52;
  --leaf-soft: #B7D49A;
  --ring: #F0A090;
  --shadow: 0 18px 50px rgba(58, 42, 36, 0.10);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
  --header-h: 64px;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .phone-float { animation: none !important; }
  .ring-progress { animation: none !important; stroke-dashoffset: 80 !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 90, 69, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(111, 154, 82, 0.08), transparent 50%),
    var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, select { font: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(251, 244, 234, 0.82);
  border-bottom: 1px solid rgba(58, 42, 36, 0.06);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; font-weight: 700; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand img { border-radius: 10px; box-shadow: 0 4px 12px rgba(232, 90, 69, 0.25); }
.brand-text { font-size: 0.95rem; }
.header-nav {
  display: none; gap: 1.25rem; margin-left: 1.5rem;
}
.header-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
}
.header-nav a:hover { color: var(--tomato); }
.header-actions {
  margin-left: auto; display: flex; align-items: center; gap: 0.65rem;
}
#lang-select {
  border: 1px solid rgba(58, 42, 36, 0.12);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: var(--ink);
}
.header-progress {
  height: 2px; background: transparent; overflow: hidden;
}
.header-progress-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--tomato), var(--coral));
  transition: width 0.1s linear;
}

@media (min-width: 880px) {
  .header-nav { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  padding: 0.85rem 1.35rem; border: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-play {
  background: linear-gradient(180deg, var(--coral) 0%, var(--tomato) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 90, 69, 0.32);
}
.btn-play:hover { box-shadow: 0 14px 34px rgba(232, 90, 69, 0.4); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-ghost {
  background: transparent; color: var(--tomato-deep);
  border: 1.5px solid rgba(232, 90, 69, 0.35);
}
.btn-ghost:hover { background: rgba(232, 90, 69, 0.08); }
.btn-play-icon { width: 1.15rem; height: 1.15rem; }

/* Eyebrow / type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 0 0 0.75rem; color: var(--tomato-deep);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 0 4px rgba(232, 90, 69, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232, 90, 69, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(232, 90, 69, 0.05); }
}

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

.section-head { max-width: 640px; margin-bottom: 2.25rem; }
.section-lead { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.22s; }

/* Hero */
.hero {
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 2rem; }
}
.hero-sub {
  font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 36rem;
}
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; }
.hero-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.hero-pills {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.hero-pills li {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(58, 42, 36, 0.08);
  border-radius: 999px; padding: 0.4rem 0.85rem;
  font-size: 0.85rem; font-weight: 550; color: var(--ink-soft);
}

.hero-visual {
  position: relative; min-height: 280px;
}
.hero-ring-wrap {
  position: absolute; inset: auto auto -8% -8%;
  width: min(42%, 220px); aspect-ratio: 1; opacity: 0.55; pointer-events: none;
  z-index: 0;
}
.hero-ring, .final-ring svg { width: 100%; height: 100%; }
.ring-track {
  fill: none; stroke: rgba(232, 90, 69, 0.12); stroke-width: 6;
}
.ring-progress {
  fill: none; stroke: var(--tomato); stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
  animation: ring-draw 3.2s ease-in-out infinite alternate;
}
.ring-progress-slow {
  stroke-dasharray: 276;
  animation-duration: 4.5s;
}
@keyframes ring-draw {
  from { stroke-dashoffset: 280; }
  to { stroke-dashoffset: 70; }
}

.hero-feature {
  margin: 0; position: relative; z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(58, 42, 36, 0.06);
  background: var(--paper);
}
.hero-feature img {
  width: 100%; aspect-ratio: 1024 / 500; object-fit: cover;
}

.hero-float {
  position: absolute; z-index: 2;
  right: 4%; bottom: -8%;
  width: min(38%, 200px);
  filter: drop-shadow(0 18px 30px rgba(58, 42, 36, 0.28));
}
.hero-float img {
  border-radius: 18px;
  border: 3px solid #1a1a1a;
}
.phone-float {
  animation: float-y 5.5s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scenes */
.scenes { padding: 1rem 0 4rem; }
.scene-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 800px) {
  .scene-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}
.scene-card {
  background: var(--paper);
  border: 1px solid rgba(58, 42, 36, 0.07);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.5rem;
  box-shadow: 0 8px 24px rgba(58, 42, 36, 0.04);
}
.scene-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.scene-icon {
  width: 44px; height: 44px; margin-bottom: 0.85rem;
  color: var(--tomato);
  background: rgba(232, 90, 69, 0.08);
  border-radius: 12px;
  display: grid; place-items: center;
}
.scene-icon svg { width: 28px; height: 28px; }

/* Diff */
.diff {
  padding: 1rem 0 4rem;
  background:
    linear-gradient(180deg, transparent, rgba(243, 230, 214, 0.65) 20%, rgba(243, 230, 214, 0.65) 80%, transparent);
}
.diff-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 800px) {
  .diff-grid { grid-template-columns: repeat(3, 1fr); }
}
.diff-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(58, 42, 36, 0.07);
  position: relative;
  overflow: hidden;
}
.diff-card p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.diff-num {
  display: block; font-family: var(--display);
  color: rgba(232, 90, 69, 0.35); font-size: 1.6rem; font-weight: 700;
  margin-bottom: 0.35rem;
}
.diff-meter {
  height: 4px; border-radius: 999px; background: rgba(232, 90, 69, 0.12); overflow: hidden;
}
.diff-meter span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--tomato), var(--coral));
  border-radius: inherit;
  transition: width 1.1s ease;
}
.diff-card.is-in .diff-meter span,
.diff-card .diff-meter span.animate { width: var(--p); }
/* when parent reveal is in */
.reveal.is-in .diff-meter span { width: var(--p); }

/* Gallery */
.gallery-section { padding: 2rem 0 4rem; }
.gallery-rail { display: grid; gap: 2.5rem; }
.gallery-item {
  display: grid; gap: 1.5rem; align-items: center;
  background: var(--paper);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
  border: 1px solid rgba(58, 42, 36, 0.06);
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .gallery-item {
    grid-template-columns: minmax(200px, 280px) 1fr;
    padding: 1.5rem 1.75rem;
    gap: 2rem;
  }
  .gallery-item-flip { grid-template-columns: 1fr minmax(200px, 280px); }
  .gallery-item-flip figure { order: 2; }
  .gallery-item-flip .gallery-copy { order: 1; }
}
.gallery-item figure {
  margin: 0; border-radius: 18px; overflow: hidden;
  background: var(--cream-2);
}
.gallery-item img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.02); }
.gallery-kicker {
  margin: 0 0 0.35rem; color: var(--tomato-deep);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.gallery-copy p:last-child { margin: 0; color: var(--ink-soft); }

/* VIP */
.vip-note { padding: 0 0 3rem; }
.vip-panel {
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(232, 90, 69, 0.1), rgba(111, 154, 82, 0.1));
  border: 1px solid rgba(232, 90, 69, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.vip-panel h2 { margin-bottom: 0.5rem; }
.vip-panel p:last-of-type { margin: 0; color: var(--ink-soft); max-width: 46rem; }

/* Final CTA */
.final-cta {
  padding: 1rem 0 4.5rem;
}
.final-inner {
  text-align: center;
  background: var(--paper);
  border-radius: calc(var(--radius) + 6px);
  padding: 3rem 1.5rem;
  border: 1px solid rgba(58, 42, 36, 0.06);
  box-shadow: var(--shadow);
  position: relative;
}
.final-ring {
  width: 110px; height: 110px; margin: 0 auto 1.25rem;
  position: relative; display: grid; place-items: center;
}
.final-ring svg { position: absolute; inset: 0; }
.final-ring img {
  position: relative; z-index: 1; border-radius: 22px;
  box-shadow: 0 8px 20px rgba(232, 90, 69, 0.25);
}
.final-inner p { color: var(--ink-soft); margin: 0 0 1.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(58, 42, 36, 0.08);
  padding: 2.5rem 0 3rem;
  background: rgba(243, 230, 214, 0.45);
}
.footer-inner { display: grid; gap: 1.25rem; }
.footer-brand {
  display: flex; gap: 0.75rem; align-items: center;
}
.footer-brand img { border-radius: 10px; }
.footer-brand strong { display: block; }
.footer-brand p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.88rem; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
}
.footer-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500;
}
.footer-links a:hover { color: var(--tomato); text-decoration: underline; }
.footer-copy { margin: 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 640px) {
  .brand-text { max-width: 11rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-float { width: min(42%, 150px); bottom: -4%; }
}


/* First paint: hero content visible immediately (CTA clickable; no wait for JS) */
.hero .reveal { opacity: 1; transform: none; }
.hero-float { pointer-events: none; }
.hero-ring-wrap { pointer-events: none; }
.hero-cta .btn, .header-actions .btn { position: relative; z-index: 5; }

/* GEO: brand line under H1 + byline + diff summary */
.brand-in-h1 {
  display: block;
  margin: 0.35rem 0 0;
  font-family: var(--font-sans, "DM Sans", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tomato, #E85A45);
}
.page-byline,
.footer-byline {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted, #8a7468);
}
.diff-summary {
  margin: 1.5rem 0 0;
  padding: 0 0 0 1.25rem;
  color: var(--ink-soft, #5c4a42);
  max-width: 40rem;
}
.diff-summary li { margin: 0.35rem 0; }
