/* =========================================================
   ReadItWiser — Landing Page
   Visual System: OLED true black + Vivid Gold (#F2B544)
   Typography: Cormorant Garamond (display) + Noto Serif JP
               Inter / Noto Sans JP (body)
   ========================================================= */

:root {
  --bg:           #000000;
  --bg-1:         #050505;
  --bg-2:         #0a0a0c;
  --ink:          #f6f3ec;
  --ink-soft:     #c9c3b3;
  --ink-mute:     #7f7a6f;
  --line:         rgba(242, 181, 68, 0.14);
  --line-strong:  rgba(242, 181, 68, 0.36);

  --gold:         #f2b544;
  --gold-soft:    #e8c98c;
  --gold-deep:    #b8851f;
  --gold-bright:  #ffe9a8;

  /* gradients */
  --grad-gold:
    linear-gradient(135deg, #fff1c2 0%, #f2b544 38%, #b8851f 62%, #fff1c2 100%);
  --grad-gold-text:
    linear-gradient(180deg, #ffe9a8 0%, #f2b544 45%, #b8851f 70%, #f6dca0 100%);
  --grad-shine:
    linear-gradient(
      100deg,
      #b8851f 0%,
      #f2b544 20%,
      #fff5d6 38%,
      #ffe9a8 50%,
      #fff5d6 62%,
      #f2b544 80%,
      #b8851f 100%
    );

  /* type */
  --font-serif: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans:  "Inter", "Noto Sans JP", "Hiragino Sans", "Helvetica Neue", system-ui, sans-serif;

  --shadow-soft: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 8px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 1px rgba(242, 181, 68, 0.5),
                 0 0 60px -10px rgba(242, 181, 68, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-feature-settings: "palt" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}
body { min-height: 100vh; }

img { max-width: 100%; display: block; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* ======= Background Layers ======= */
#bg-canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
#bg-canvas-wrap canvas {
  display: block;
  width: 100vw !important;
  height: 100vh !important;
}
/* CSS-only fallback glow if WebGL fails — provides warm horizon */
#bg-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 70%, rgba(242,181,68,0.12), transparent 65%),
    radial-gradient(ellipse 90% 40% at 20% 90%, rgba(184,133,31,0.08), transparent 70%);
  z-index: -1;
}
/* Soft vignette — darkens edges so foreground text stays readable,
   but lets the wave breathe through the center. */
#bg-vignette {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 0%, rgba(0,0,0,0.35) 75%, rgba(0,0,0,0.7) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 14%, transparent 86%, rgba(0,0,0,0.75) 100%);
}
#bg-grain {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 3; }

/* ======= Typography Effects ======= */
.gold-text {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.6))
          drop-shadow(0 0 18px rgba(242,181,68,0.18));
}

.gold-shine {
  background: var(--grad-shine);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shine 6.5s linear infinite;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.6))
          drop-shadow(0 0 24px rgba(242,181,68,0.28));
}
@keyframes shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ======= Layout primitives ======= */
.section {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}
.section__head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before, .kicker::after {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.section__head:not(.section__head--center) .kicker::after { display: none; }

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--ink);
}
.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-soft);
}

.lede {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0;
  line-height: 1.85;
}
.section__head--center .lede { margin-left: auto; margin-right: auto; }

/* ======= Buttons ======= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn--gold {
  background: var(--grad-gold);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: #1a1206;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 8px 30px -8px rgba(242,181,68,0.55);
}
.btn--gold:hover {
  transform: translateY(-1px);
  background-position: 100% 0%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 14px 40px -8px rgba(242,181,68,0.7);
}
.btn--ghost {
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(242,181,68,0.08);
  border-color: var(--gold);
}
.btn--block { width: 100%; }
.btn--lg { padding: 18px 34px; font-size: 15px; }

/* ======= Navigation ======= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 18px clamp(20px, 5vw, 80px);
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 100%);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(242,181,68,0.2);
}
.nav__name {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 500;
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--gold); }
.nav__cta {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__cta:hover {
  background: var(--gold);
  color: #1a1206;
}

/* ===== Language switcher ===== */
.lang-switcher {
  position: relative;
}
.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-switcher__toggle:hover {
  border-color: var(--line-strong);
  color: var(--gold);
}
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(8, 6, 4, 0.95);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.lang-switcher[data-open="true"] .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher__menu li {
  list-style: none;
}
.lang-switcher__menu a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.lang-switcher__menu a:hover {
  background: rgba(242,181,68,0.08);
  color: var(--gold);
}
.lang-switcher__menu [aria-current="true"] a {
  background: rgba(242,181,68,0.12);
  color: var(--gold);
}

/* ======= HERO ======= */
.hero {
  min-height: 92vh;
  padding: 140px clamp(20px, 5vw, 80px) 100px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(242,181,68,0.04);
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 32px;
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}
.hero__title .line {
  display: block;
}
.hero__title .line:first-child {
  color: var(--ink);
  font-weight: 300;
}

.hero__lede {
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--ink-soft);
  line-height: 1.95;
  max-width: 540px;
  margin: 0 0 40px;
}
.hero__lede em {
  font-style: normal;
  color: var(--gold-soft);
  font-weight: 500;
}

.hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__cta-row--center { justify-content: center; }

.hero__meta {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta__num {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  color: var(--gold-soft);
  letter-spacing: 0.01em;
}
.meta__num small {
  font-size: 0.55em;
  margin-left: 4px;
  color: var(--ink-mute);
}
.meta__lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* hero showcase — phone + filter chips, black pixels dropped via blend mode */
.hero__showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.showcase-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  /* no card chrome — image floats on top of the wave */
  transform: rotateY(-3deg) rotateX(1deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6))
          drop-shadow(0 0 80px rgba(242,181,68,0.35));
}
.showcase-card img {
  width: 100%;
  display: block;
  /* image has true transparent background; no blend-mode needed */
}

/* ===== Filter chips (HTML/CSS, modern 2026 flat glass) ===== */
.filter-chips {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 3;
  margin: 0; padding: 0;
  list-style: none;
}
.chip {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold);
  padding: 10px 22px;
  border-radius: 999px;
  /* flat 2D pill — frosted glass, hairline border, NO bevels / NO inner shadows */
  background: rgba(20, 18, 14, 0.55);
  border: 1px solid rgba(242, 181, 68, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  /* subtle outer halo only */
  box-shadow: 0 0 24px -4px rgba(242, 181, 68, 0.35);
  white-space: nowrap;
  animation: chip-float 4.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.chip:nth-child(2) { transform: translateX(-6px); }
.chip:nth-child(3) { transform: translateX(4px); }

@keyframes chip-float {
  0%, 100% { transform: translateY(0) translateX(var(--tx, 0)); }
  50%      { transform: translateY(-6px) translateX(var(--tx, 0)); }
}

.phone-glow {
  position: absolute;
  inset: -15% -15% -30% -15%;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(242,181,68,0.32), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* ======= WHY ======= */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why__card {
  position: relative;
  padding: 36px 30px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.why__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.why__card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.why__num {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}
.why__card h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.3;
}
.why__card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0;
}

/* ======= AI ======= */
.ai__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.ai__card {
  position: relative;
  padding: 48px 40px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.ai__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.04);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.ai__badge--gold {
  background: rgba(242,181,68,0.1);
  color: var(--gold);
  border-color: var(--line-strong);
}
.ai__badge--free {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border-color: rgba(74,222,128,0.35);
  margin-left: 8px;
}
.ai__card h3 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.ai__card--gpt h3 {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai__role {
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 28px;
}
.ai__list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14.5px;
}
.ai__list li::before {
  content: "✦";
  position: absolute;
  left: 0; top: 12px;
  color: var(--gold);
  font-size: 12px;
}
.ai__list li:first-child { border-top: none; padding-top: 0; }
.ai__list li:first-child::before { top: 0; }

.ai__breath {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent 40%, transparent 60%, rgba(255,255,255,0.1));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  animation: breath 5s ease-in-out infinite;
}
.ai__breath--gold {
  background: linear-gradient(135deg, rgba(242,181,68,0.5), transparent 35%, transparent 65%, rgba(242,181,68,0.35));
  animation-duration: 4s;
}
@keyframes breath {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* ======= SCREENS — alternating landscape tiles ======= */
.screens__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 120px);
}
.screens__tile {
  margin: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1.9fr 0.8fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.screens__tile--reverse {
  grid-template-columns: 0.8fr 1.9fr;
}
.screens__tile--reverse img { order: 2; }
.screens__tile--reverse figcaption { order: 1; }

.screens__tile img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(242,181,68,0.2);
  box-shadow:
    var(--shadow-soft),
    0 0 60px -20px rgba(242,181,68,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  cursor: zoom-in;
  position: relative;
  z-index: 1;
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.45s ease;
}
.screens__tile--reverse img { transform-origin: right center; }
/* Hover end-state is sized to fit a 1280px viewport (the binding laptop case):
   edge-anchored scale ≤ ~1.53 keeps the enlarged image on-screen, since the
   page clips horizontal overflow. Source webp is 2868px wide, so the zoomed
   image stays sharp and the in-app UI on the right becomes readable. */
.screens__tile:hover img {
  transform: scale(1.5);
  z-index: 30;
  box-shadow:
    0 40px 120px -30px rgba(0,0,0,0.7),
    0 0 90px -20px rgba(242,181,68,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}
.screens__tile figcaption {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.screens__num {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 500;
}
.screens__tile figcaption strong {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.screens__tile figcaption p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0;
  max-width: 36ch;
}

/* ======= FEATURES ======= */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.feature {
  background: rgba(5,5,5,0.65);
  padding: 40px 32px;
  transition: background 0.3s ease;
}
.feature:hover { background: rgba(242,181,68,0.04); }
.feature__icon {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 18px;
  line-height: 1;
}
.feature h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.35;
}
.feature p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
  margin: 0;
}

/* ======= PRICING ======= */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: 40px 32px 36px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan--featured {
  border-color: rgba(242,181,68,0.55);
  background:
    linear-gradient(180deg, rgba(242,181,68,0.08), rgba(242,181,68,0.01)),
    rgba(5,5,5,0.6);
  box-shadow: 0 30px 80px -20px rgba(242,181,68,0.25);
}
.plan__crown {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--grad-gold);
  color: #1a1206;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  border-radius: 999px;
  text-transform: uppercase;
}
.plan__head { display: flex; flex-direction: column; gap: 12px; }
.plan__tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.plan__tag--gold { color: var(--gold); }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}
.plan__price-num {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.plan__price-unit {
  font-size: 14px;
  color: var(--ink-mute);
}
.plan__trial {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: -4px 0 0;
}
.plan__list { display: flex; flex-direction: column; gap: 10px; }
.plan__list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}
.plan__list strong { color: var(--ink); font-weight: 600; }
.plan .btn { margin-top: auto; }

.pricing__foot {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ======= CTA ======= */
.cta__card {
  position: relative;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 60px);
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(242,181,68,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.005));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  isolation: isolate;
  max-width: 1080px;
  margin: 0 auto;
}
.cta__card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,233,168,0.6), transparent 30%, transparent 70%, rgba(255,233,168,0.4));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  animation: breath 5s ease-in-out infinite;
}
.cta__icon {
  display: inline-block;
  margin-bottom: 32px;
}
.cta__icon img {
  width: 88px; height: 88px;
  border-radius: 20px;
  box-shadow: 0 20px 60px -10px rgba(242,181,68,0.5), inset 0 0 0 1px rgba(242,181,68,0.3);
}

/* ======= FOOTER ======= */
.footer {
  margin-top: 60px;
  padding: 60px clamp(20px, 5vw, 80px) 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(242,181,68,0.2);
}
.footer__name {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.footer__tag {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 2px 0 0;
}
.footer__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0;
  text-align: right;
}

/* ======= Reveal animation (only active when JS is ready) ======= */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======= Responsive ======= */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    min-height: auto;
    padding-top: 120px;
  }
  .hero__showcase { order: -1; margin-bottom: 24px; min-height: 260px; }

  .nav__links { display: none; }

  .why__grid,
  .ai__grid,
  .features__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .screens__tile,
  .screens__tile--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .screens__tile--reverse img,
  .screens__tile--reverse figcaption { order: initial; }
  /* Single-column (tablet/touch): image is already near full-width, and there
     is no real hover — disable the zoom so it never overflows. */
  .screens__tile img { cursor: default; }
  .screens__tile:hover img { transform: none; }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__brand, .footer__links { justify-content: center; }
  .footer__copy { text-align: center; }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(38px, 11vw, 56px); }
  .hero__meta { flex-wrap: wrap; gap: 18px; }
  .hero__cta-row .btn { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
