/* index.css — landing page only. Site-wide styles live in css/all/greetster-style.css */

/* ── Hero: copy left, silent demo right (splashes + doodles are site-wide now) ── */
.hero { padding: 64px 40px 56px; }
.hero-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 44px; align-items: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.9rem);
  letter-spacing: -0.03em; line-height: 1.06;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--blurple); transition: color 0.55s ease; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 34rem; margin-bottom: 24px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 14px; }
.trust-line { font-size: 0.85rem; color: var(--muted); }
.trust-line strong { color: var(--body); }

/* the demo window: clean rounded frame, the looping recording drops straight in */
.demo-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.demo-slot { aspect-ratio: 16 / 10; border: none; border-radius: 0; padding: 0 24px; cursor: default; }
.demo-slot:hover { transform: none; box-shadow: none; }
.demo-slot p { text-align: center; }
.demo-frame video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ── Platform banner: the single contrast section.
   Its surface IS each platform's own dark-mode grey/blue, with that platform's
   visual language drifting behind: subconscious "this was built for my app". ── */
.platform-banner {
  position: relative;
  overflow: hidden;
  background: #313338; /* Discord's dark UI surface */
  padding: 76px 24px;
  text-align: center;
  transition: background-color 0.55s ease;
}
html[data-platform="telegram"] .platform-banner { background: #17212b; } /* Telegram night blue */
.platform-banner-inner { position: relative; z-index: 1; }

/* per-platform motif layers, crossfaded and slowly drifting */
.pb-deco {
  position: absolute; inset: -40px;
  opacity: 0;
  transition: opacity 0.55s ease;
  background-repeat: repeat;
  background-size: 240px 240px;
  animation: deco-drift 90s linear infinite;
  pointer-events: none;
}
.pb-deco.discord {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%23ffffff' stroke-width='2'><text x='18' y='58' font-family='monospace' font-size='44' fill='%23ffffff' stroke='none' transform='rotate(-8 18 58)'>%23</text><text x='146' y='118' font-family='monospace' font-size='36' fill='%23ffffff' stroke='none' transform='rotate(6 146 118)'>@</text><circle cx='52' cy='150' r='14'/><circle cx='52' cy='192' r='14'/><rect x='118' y='168' width='88' height='30' rx='15'/><circle cx='192' cy='58' r='16'/><path d='M186 58l5 5 8-9' stroke-linecap='round' stroke-linejoin='round'/></g></svg>");
}
.pb-deco.telegram {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 40a10 10 0 0 1 10-10h52a10 10 0 0 1 10 10v24a10 10 0 0 1-10 10H48l-13 11v-11h-5a10 10 0 0 1-10-10z'/><path d='M148 58l9 9 15-17M167 58l9 9 15-17'/><path d='M40 152l72-27-17 64-18-21z'/><path d='M77 168l35-43'/><circle cx='182' cy='172' r='18'/><path d='M174 172l6 6 12-13'/></g></svg>");
}
html[data-platform="discord"] .pb-deco.discord { opacity: 0.07; }
html[data-platform="telegram"] .pb-deco.telegram { opacity: 0.08; }
@keyframes deco-drift { to { background-position: 240px 240px; } }
@media (prefers-reduced-motion: reduce) { .pb-deco { animation: none; } }

.platform-banner .kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: color-mix(in srgb, var(--blurple) 55%, #fff);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px;
  transition: color 0.55s ease;
}
.platform-banner h2 { color: #fff; max-width: 620px; margin: 16px auto 10px; }
.platform-banner p { color: rgba(255, 255, 255, 0.62); max-width: 34rem; margin: 0 auto 32px; }
.platform-toggle {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 6px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.platform-toggle button {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 26px; border: none; border-radius: 10px;
  background: transparent; color: rgba(255, 255, 255, 0.72);
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background-color 0.55s ease, color 0.3s ease;
}
.platform-toggle button:hover:not(:disabled):not(.active) { color: #fff; }
.platform-toggle button.active { background: var(--blurple); color: #fff; }
.platform-toggle button:disabled { color: rgba(255, 255, 255, 0.32); cursor: not-allowed; }
.platform-toggle .soon {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.45);
  padding: 2px 7px; border-radius: 99px;
}

/* accent heading inside the dark banner: purple, readable on dark, morphs */
.pb-accent { color: color-mix(in srgb, var(--blurple) 72%, #fff); transition: color 0.55s ease; }

/* ── Story duo: VSL + founder blurb, symmetric and centered ── */
#my-story { text-align: center; }
#my-story .panel-head { margin-left: auto; margin-right: auto; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.story-grid blockquote { font-size: 1.28rem; line-height: 1.6; color: var(--body); }
.story-grid .sig { margin-top: 16px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.story-grid .sig span { color: var(--muted); font-weight: 500; font-size: 0.9rem; display: block; }

/* ── Features: criss-cross rows. Media | text, alternating with .flip.
   Each media box is a soundless loop slot, fixed 16:10 so nothing jumps. ── */
.feat-rows { display: flex; flex-direction: column; gap: 60px; max-width: 980px; margin: 0 auto; }
.feat-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.feat-row.flip .feat-media { order: 2; }
.feat-media .video-slot { aspect-ratio: 16 / 10; cursor: default; box-shadow: var(--shadow); }
.feat-media .video-slot:hover { transform: none; box-shadow: var(--shadow); }
.feat-media video {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.feat-copy h3 { font-size: clamp(1.25rem, 2.3vw, 1.6rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.feat-copy p { font-size: 0.97rem; margin-bottom: 14px; }
.feat-link { color: var(--blurple); font-weight: 700; font-size: 0.92rem; text-decoration: none; transition: color 0.55s ease; }
.feat-link:hover { text-decoration: underline; }

/* ── Compare (2 columns, no names) ── */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 15px 18px; font-size: 0.93rem; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--ink); font-weight: 600; }
.compare-table th { font-weight: 800; color: var(--ink); }
.compare-table th.us { background: var(--blurple-tint); color: var(--blurple); border-radius: 10px 10px 0 0; }
.compare-table td.us { background: var(--blurple-tint); font-weight: 700; color: var(--ink); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:last-child td.us { border-radius: 0 0 10px 10px; }
.compare-table .good { color: var(--green); }
.compare-table .bad { color: var(--muted); }

/* ── Under the hood (trust) ── */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.trust-list { list-style: none; }
.trust-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.trust-list li:last-child { border-bottom: none; }
.trust-list.can li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.trust-list.cant li::before { content: "✕ "; color: var(--red); font-weight: 800; }
.trust-note { font-size: 0.9rem; color: var(--muted); }

/* ── Pricing: controls sit bare on the doodled background (no wrapper box),
   one card below them. Two stacked decisions on one centre axis: HOW you
   pay, then HOW LONG. Rails slot is fixed-height so nothing jumps. ── */
.pricing-controls {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 30px;
}

/* segmented toggles: floating pills, not a bar. Shadow lifts them off the
   wallpaper so they read as controls, not text. */
.toggle-row {
  display: inline-flex; justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 4px;
  gap: 3px;
  max-width: 100%;
}
.toggle-row button {
  padding: 9px 20px; font-size: 0.9rem; font-weight: 700;
  background: transparent; color: var(--body);
  border: none; border-radius: 9px; cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.toggle-row button:hover { color: var(--ink); }
.toggle-row button.active { background: var(--blurple); color: #fff; }
.method-row button { min-width: 128px; }
.period-row button { min-width: 108px; }

.mini-save {
  font-size: 0.7rem; font-weight: 800;
  color: var(--green);
  background: rgba(35, 165, 90, 0.12);
  padding: 2px 7px; border-radius: 99px;
  margin-left: 6px;
}
.toggle-row button.active .mini-save { color: #fff; background: rgba(255, 255, 255, 0.22); }

/* period slot: card row (2 buttons) or crypto row (4), never both */
.period-row.period-crypto { display: none; }
#pricing.crypto-mode .period-row.period-card { display: none; }
#pricing.crypto-mode .period-row.period-crypto { display: inline-flex; }

/* rails: reassurance line in card mode, coin chips in crypto mode.
   Fixed height + crossfade so switching method never moves the card. */
.rails-slot { position: relative; width: 100%; height: 40px; }
.rails {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 9px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 0.86rem; color: var(--muted); margin: 0;
}
.rails-card { opacity: 1; }
#pricing.crypto-mode .rails-card { opacity: 0; }
#pricing.crypto-mode .rails-crypto { opacity: 1; }
.coin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 99px;
  background: var(--blurple-tint); color: var(--blurple);
  font-weight: 700; font-size: 0.86rem; line-height: 1;
  transition: background-color 0.55s ease, color 0.55s ease;
}
.coin .ci { width: 19px; height: 19px; flex-shrink: 0; }

/* plans animate only when the numbers change */
@keyframes plans-swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.plans.swap { animation: plans-swap 0.35s ease; }

/* ONE card, centered. Grid (not block) keeps .swap + the mobile rules. */
.plans { display: grid; grid-template-columns: minmax(0, 520px); justify-content: center; }
.plan {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* accent band: the price is the loudest thing in the section */
.plan-head {
  background: var(--blurple);
  padding: 26px 24px 22px;
  text-align: center;
  transition: background-color 0.55s ease;
}
.plan-name {
  display: block;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.75);
}
.plan .price {
  font-size: 3rem; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 4px;
}
.plan .price small { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.plan .billed { font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); }

.plan ul { list-style: none; flex: 1; padding: 8px 26px; margin: 0; }
.plan li { padding: 10px 0; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.plan li:last-child { border-bottom: none; }
.plan li::before { content: "✓ "; color: var(--green); font-weight: 800; }

.plan-foot { padding: 8px 26px 26px; }
.plan .btn { width: 100%; text-align: center; }
.plan .cap-line {
  text-align: center; font-size: 0.86rem; color: var(--muted);
  margin: 12px 0 0;
}

/* the 4-button crypto row is wide: let it shrink before it overflows */
@media (max-width: 620px) {
  .period-row button { min-width: 0; padding: 9px 12px; font-size: 0.85rem; }
  .period-crypto button { padding: 9px 9px; font-size: 0.8rem; }
  .period-crypto .mini-save { display: block; margin: 3px 0 0; font-size: 0.62rem; }
}

/* ── FAQ ── */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 700; font-size: 0.98rem; }
.faq details p { margin-top: 10px; font-size: 0.92rem; }

/* ── Final CTA + contact ── */
.final-cta { text-align: center; }
.final-cta h2 { margin: 0 auto 26px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-form { max-width: 520px; margin: 30px auto 0; display: grid; gap: 12px; text-align: left; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 0.95rem;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blurple); }
.contact-status { font-size: 0.88rem; color: var(--muted); text-align: center; }

/* ── Mobile: stack everything, keep it glideable ── */
@media (max-width: 900px) {
  .hero { padding: 44px 20px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .platform-banner { padding: 56px 16px; }
  .platform-toggle button { padding: 12px 18px; font-size: 0.9rem; }
  .story-grid, .trust-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  /* table keeps full-size text and scrolls sideways inside its own box */
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 0.85rem; }
  /* criss-cross stacks: media first, then words, every row the same */
  .feat-rows { gap: 44px; }
  .feat-row { grid-template-columns: 1fr; gap: 18px; }
  .feat-row.flip .feat-media { order: 0; }
  /* 4 coin chips fit one line on a 375px screen */
  .rails { gap: 7px; }
  .coin { padding: 5px 11px; font-size: 0.78rem; gap: 6px; }
  .coin .ci { width: 16px; height: 16px; }
}

/* compare table: never squishes, scrolls in its own container (style.md law) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .compare-table { min-width: 560px; }

/* tiny phones: 4 crypto buttons must still fit 375px */
@media (max-width: 400px) {
  .plan .price { font-size: 2.5rem; }
  .plan ul, .plan-foot { padding-left: 20px; padding-right: 20px; }
  .period-crypto button { padding: 8px 7px; font-size: 0.74rem; }
  .period-crypto .mini-save { font-size: 0.58rem; padding: 2px 5px; }
}
