/* ============================================================
   DECIDO.CSS — Page 1 · accent: --purple (#6366F1)
   ============================================================ */

:root {
  --accent: #6366F1;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero>.container {
  max-width: none;
  width: 100%;
  padding-left: clamp(24px, 3vw, 80px);
  padding-right: clamp(24px, 3vw, 80px);
}

/* Radial teal glow */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-60%, -50%);
  width: 800px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.11) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ---- Hero Heading ---- */
.hero-heading {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.5rem, 10vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow: visible;
  padding-bottom: 0.12em;
}

.hero-heading .h-solid {
  color: var(--white);
}

.hero-heading .h-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  paint-order: stroke fill;
}

.hero-subline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ================================================================
   DESKTOP HERO OVERRIDES (Side-by-side)
   ================================================================ */
@media (min-width: 960px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    text-align: left;
  }

  .hero-heading {
    align-items: flex-start;
    font-size: clamp(4.5rem, 7vw, 9.5rem);
  }

  .hero-subline {
    margin-left: 0;
    margin-right: 0;
    max-width: 420px;
  }

  .hero-ctas {
    justify-content: flex-start;
  }
}

/* ================================================================
   PHONE MOCKUP
   Pure CSS — no images. Phone frame + inner screen + swipe cards.
   ================================================================ */
.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Ambient glow halo */
.phone-wrap::before {
  content: '';
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.phone {
  width: 246px;
  height: 510px;
  background: #0c1522;
  border-radius: 42px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  margin-right: -50px;
  z-index: 1;
  overflow: hidden;
  clip-path: inset(0 round 42px);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.07),
    0 40px 100px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Notch */
.phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 8px;
  background: #050c14;
  border-radius: 4px;
  z-index: 10;
}

/* Side button details */
.phone::after {
  content: '';
  position: absolute;
  top: 110px;
  right: -3px;
  width: 3px;
  height: 50px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 2px 2px 0;
}

.phone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 0px;
  padding: 0px 14px 0px;
  overflow: hidden;
}

.phone-status {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-body);
  z-index: 5;
}

.phone-app-header {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.phone-app-title {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone-group-tag {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-body);
  margin-top: 2px;
}

/* ---- Swipe Area ---- */
.swipe-area {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.swipe-card {
  position: absolute;
  width: 190px;
  height: 230px;
  background: linear-gradient(145deg, #172030 0%, #0d1825 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
  overflow: hidden;
}

/* Subtle gradient sheen on card */
.swipe-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.swipe-card-emoji {
  font-size: 2.6rem;
  display: block;
  line-height: 1;
}

.swipe-card-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  padding: 0 12px;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.swipe-card-tag {
  font-family: var(--font-body);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Vote badge (YES / NO) */
.swipe-vote {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.58rem;
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.swipe-vote.yes {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.swipe-vote.no {
  background: rgba(255, 75, 75, 0.12);
  color: #ff5555;
  border: 1px solid rgba(255, 75, 75, 0.25);
}

/* ---- Phone Bottom Bar ---- */
.phone-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.swipe-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hint-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hint-circle.no-hint {
  background: rgba(255, 75, 75, 0.08);
  border: 1px solid rgba(255, 75, 75, 0.18);
}

.hint-circle.yes-hint {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.hint-label {
  font-size: 0.48rem;
  font-family: var(--font-body);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.features {
  padding: 130px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 36px 30px 40px;
  position: relative;
}

/* Teal accent corner — bottom left */
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-radius: 0 0 0 3px;
  pointer-events: none;
}

.feature-icon {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  line-height: 0;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-section {
  padding: 80px 0 130px;
}

.how-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 72px;
  text-align: center;
}

/* ================================================================
   MARQUEE SECTION
   ================================================================ */
.marquee-section {
  padding: 28px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.marquee-section .marquee-inner span {
  color: var(--accent);
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  padding: 150px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
  line-height: 1.1;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* ================================================================
   RESPONSIVE — decido.html
   ================================================================ */

/* ---- Tablet landscape / small desktop (< 1280px) ---- */
@media (max-width: 1279px) {
  .hero-inner {
    gap: 48px;
  }

  .features-grid {
    gap: 16px;
  }
}

/* ---- Tablet portrait (< 960px) — stack hero ---- */
@media (max-width: 959px) {
  .hero {
    padding: 90px 0 80px;
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  /* Heading flex column needs explicit centering — text-align doesn't cascade into flex */
  .hero-heading {
    align-items: center;
    width: 100%;
  }

  .hero-subline {
    max-width: 520px;
    margin: 0 auto 36px;
  }

  .hero-ctas {
    justify-content: center;
  }

  /* Phone mockup: full width column, centred inside */
  .phone-wrap {
    order: -1;
    width: 100%;
    justify-content: center;
    margin: 0 auto;
    justify-self: center;
  }

  .phone {
    margin-right: 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    padding: 100px 0;
  }

  .how-section {
    padding: 60px 0 100px;
  }

  .cta-section {
    padding: 100px 0;
  }

  .how-title {
    margin-bottom: 52px;
  }
}

/* ---- Large phones landscape / small tablet (< 768px) ---- */
@media (max-width: 767px) {
  .hero-heading {
    font-size: 10vw;
  }

  .phone {
    width: 210px;
    height: 440px;
    border-radius: 36px;
    clip-path: inset(0 round 36px);
  }

  .swipe-card {
    width: 160px;
    height: 196px;
    border-radius: 18px;
  }

  .swipe-card-emoji {
    font-size: 2.1rem;
  }

  .swipe-card-name {
    font-size: 0.82rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .feature-card {
    padding: 28px 24px 34px;
  }

  .cta-title {
    margin-bottom: 36px;
  }
}

/* ---- Phones portrait (< 480px) ---- */
@media (max-width: 479px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero-heading {
    font-size: 10vw;
    gap: 2px;
    align-items: center;
    width: 100%;
  }

  .hero-subline {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .phone {
    width: 186px;
    height: 388px;
    border-radius: 32px;
    clip-path: inset(0 round 32px);
  }

  .phone-screen {
    padding: 30px 12px 16px;
  }

  .swipe-card {
    width: 142px;
    height: 174px;
    border-radius: 16px;
    gap: 7px;
  }

  .swipe-card-emoji {
    font-size: 1.8rem;
  }

  .swipe-card-name {
    font-size: 0.75rem;
  }

  .swipe-vote {
    font-size: 0.5rem;
    padding: 3px 7px;
    top: 8px;
    right: 8px;
  }

  .features {
    padding: 70px 0;
  }

  .how-section {
    padding: 50px 0 70px;
  }

  .how-title {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .marquee-section {
    padding: 20px 0;
  }

  .cta-section {
    padding: 80px 0;
  }

  .cta-title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    margin-bottom: 32px;
  }
}

/* ---- Tiny phones (< 360px) ---- */
@media (max-width: 359px) {
  .hero-heading {
    font-size: 10vw;
    align-items: center;
    width: 100%;
  }

  .phone {
    width: 160px;
    height: 336px;
    border-radius: 28px;
    clip-path: inset(0 round 28px);
  }

  .swipe-card {
    width: 122px;
    height: 150px;
    border-radius: 14px;
    gap: 5px;
  }

  .swipe-card-emoji {
    font-size: 1.5rem;
  }

  .swipe-card-name {
    font-size: 0.68rem;
  }

  .hint-circle {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* ---- Large desktop (≥ 1440px) ---- */
@media (min-width: 1440px) {
  .hero-inner {
    gap: 100px;
  }

  .features-grid {
    gap: 28px;
  }

  .feature-card {
    padding: 44px 36px 50px;
  }
}

/* ---- TV / Ultra-wide (≥ 1920px) ---- */
@media (min-width: 1920px) {
  .hero {
    padding: 140px 0 120px;
  }

  .hero-inner {
    gap: 140px;
  }

  .hero-heading {
    font-size: clamp(9rem, 8vw, 13rem);
    gap: 8px;
  }

  .hero-subline {
    font-size: 1.25rem;
    max-width: 520px;
    margin-bottom: 52px;
  }

  .phone {
    width: 340px;
    height: 700px;
    border-radius: 56px;
  }

  .phone::before {
    width: 110px;
    height: 11px;
    top: 18px;
  }

  .phone-screen {
    padding: 48px 20px 28px;
  }

  .phone-status {
    font-size: 0.7rem;
    top: 28px;
    padding: 0 30px;
  }

  .phone-app-title {
    font-size: 1.1rem;
  }

  .phone-group-tag {
    font-size: 0.7rem;
  }

  .swipe-card {
    width: 262px;
    height: 316px;
    border-radius: 28px;
    gap: 14px;
  }

  .swipe-card-emoji {
    font-size: 3.4rem;
  }

  .swipe-card-name {
    font-size: 1.2rem;
  }

  .swipe-card-tag {
    font-size: 0.72rem;
    padding: 5px 14px;
  }

  .swipe-vote {
    font-size: 0.75rem;
    padding: 6px 14px;
    top: 16px;
    right: 16px;
  }

  .hint-circle {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .hint-label {
    font-size: 0.65rem;
  }

  .phone-bottom {
    gap: 32px;
    padding-top: 16px;
  }

  .features {
    padding: 180px 0;
  }

  .features-grid {
    gap: 32px;
  }

  .feature-card {
    padding: 52px 44px 60px;
  }

  .feature-icon {
    margin-bottom: 28px;
  }

  .feature-icon svg {
    width: 36px;
    height: 36px;
  }

  .feature-title {
    font-size: 1.45rem;
    margin-bottom: 16px;
  }

  .feature-desc {
    font-size: 0.95rem;
  }

  .feature-card::after {
    width: 40px;
    height: 40px;
  }

  .how-section {
    padding: 120px 0 180px;
  }

  .how-title {
    font-size: 3.5rem;
    margin-bottom: 100px;
  }

  .marquee-section {
    padding: 44px 0;
  }

  .cta-section {
    padding: 200px 0;
  }

  .cta-title {
    font-size: clamp(3rem, 4vw, 5rem);
    margin-bottom: 72px;
  }

  .cta-glow {
    width: 1000px;
    height: 500px;
  }
}

/* ---- 4K (≥ 2560px) ---- */
@media (min-width: 2560px) {
  .hero-heading {
    font-size: clamp(12rem, 9vw, 18rem);
  }

  .hero-subline {
    font-size: 1.5rem;
    max-width: 680px;
  }

  .phone {
    width: 440px;
    height: 900px;
    border-radius: 72px;
  }

  .swipe-card {
    width: 340px;
    height: 410px;
    gap: 18px;
  }

  .swipe-card-emoji {
    font-size: 4.5rem;
  }

  .swipe-card-name {
    font-size: 1.5rem;
  }

  .feature-title {
    font-size: 1.7rem;
  }

  .feature-desc {
    font-size: 1.05rem;
  }

  .how-title {
    font-size: 4rem;
  }

  .cta-title {
    font-size: 5.5rem;
  }
}

/* ================================================================
   STATS SECTION
   ================================================================ */
.stats-section {
  padding: 20px 0 100px;
  border-top: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 48px 24px;
  border-right: 1px solid var(--glass-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section {
  padding: 100px 0 80px;
}

.faq-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 52px;
  text-align: center;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
  list-style: none;
}

.faq-item:first-child {
  border-top: 1px solid var(--glass-border);
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--white);
  cursor: pointer;
  letter-spacing: 0.02em;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), color 0.2s ease;
  line-height: 1;
}

details[open] .faq-q .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  padding-bottom: 20px;
}

.faq-a p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

/* ================================================================
   MOBILE ELEMENT CENTERING (≤ 767px)
   ================================================================ */
@media (max-width: 767px) {
  .feature-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-title,
  .feature-desc {
    text-align: center;
  }
}

@media (max-width: 599px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 32px 24px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .footer-links a {
    font-size: clamp(0.6rem, 2.5vw, 0.72rem);
    white-space: nowrap;
  }
}
