/* =========================================================
   Front page styles — shared system lives in style.css
   ========================================================= */

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -160px, var(--ember-wash), transparent 65%),
    radial-gradient(900px 420px at 8% -180px, var(--bone-2), transparent 70%);
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-left .eyebrow { margin-bottom: 24px; }
.hero-left .eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
}
.hero-left h1 { margin-bottom: 22px; max-width: 14ch; }
.hero-left h1 .line-2 { color: var(--ember); }
.hero-left p.lead { margin-bottom: 32px; max-width: 50ch; }
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-cta-row .btn-primary { padding: 16px 30px; font-size: 16px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust span::before {
  content: '';
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage-wash);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.5 2.5 4.5-5' fill='none' stroke='%232F7F6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-trust .sep { display: none; }

/* hero visual — product window */
.hero-visual {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-visual::before {
  content: '';
  display: block;
  height: 38px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 20px 19px, #E4E7EC 5px, transparent 6px),
    radial-gradient(circle at 38px 19px, #E4E7EC 5px, transparent 6px),
    radial-gradient(circle at 56px 19px, #E4E7EC 5px, transparent 6px),
    var(--bone-2);
}
.hero-visual-body { padding: 18px 18px 16px; display: flex; flex-direction: column; }
.mock-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.mock-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 9px 12px;
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-generate {
  font-size: 12.5px;
  font-weight: 700;
  background: var(--ember);
  color: #fff;
  padding: 9px 14px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(193, 62, 15, 0.3);
}
.mock-caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mock-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.mock-card .plat {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ember-deep);
  background: var(--ember-wash);
  border-radius: 5px;
  padding: 2px 7px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.mock-card.sage .plat { color: var(--sage-deep); background: var(--sage-wash); }
.mock-card .type { font-size: 10.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.mock-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.mock-footer .live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--sage);
  border-radius: 50%;
  margin-right: 7px;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============ FORMATS CAROUSEL (under hero) ============ */
.formats {
  padding: 72px 0 76px;
  border-bottom: 1px solid var(--line);
  background: var(--bone-2);
  overflow: hidden;
}
.formats-head {
  text-align: center;
  margin-bottom: 40px;
}
.formats-head .section-marker { margin-bottom: 12px; display: inline-block; }
.formats-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 0 auto; max-width: 24ch; }
.formats-viewport {
  position: relative;
  margin: 0 -24px;
}
/* soft fade at both edges */
.formats-viewport::before,
.formats-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.formats-viewport::before { left: 0; background: linear-gradient(90deg, #F6F7F9, rgba(246,247,249,0)); }
.formats-viewport::after { right: 0; background: linear-gradient(270deg, #F6F7F9, rgba(246,247,249,0)); }
.formats-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 4px 0;
  animation: formats-scroll 55s linear infinite;
}
.formats-viewport:hover .formats-track { animation-play-state: paused; }
@keyframes formats-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); } /* half the track + half the gap */
}
.format-card {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(18,22,28,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.format-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.format-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember-deep);
  background: var(--ember-wash);
  border-radius: 100px;
  padding: 4px 11px;
  white-space: nowrap;
}
.format-card.alt .format-cat { color: var(--sage-deep); background: var(--sage-wash); }
.format-plat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.format-sample {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (prefers-reduced-motion: reduce) {
  .formats-track { animation: none; }
  .formats-viewport { overflow-x: auto; }
  .formats-viewport::before, .formats-viewport::after { display: none; }
  .formats-track .format-dup { display: none; }
}

/* ============ SECTION BASE ============ */
section { padding: 104px 0; position: relative; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head .section-marker { margin-bottom: 14px; display: inline-block; }
.section-head h2 { margin-bottom: 18px; }

/* ============ PROBLEM (dark band) ============ */
.problem {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  overflow: hidden;
}
.problem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 380px at 12% -60px, rgba(225, 78, 26, 0.16), transparent 68%);
  pointer-events: none;
}
.problem .container { position: relative; }
.problem h2 { color: #fff; }
.problem h2 .em { color: var(--ember); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; gap: 40px; } }
.problem-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.18;
  color: #fff;
  letter-spacing: -0.02em;
}
.problem-quote .highlight {
  color: var(--ember);
  background: none;
  padding: 0;
}
.problem-body p {
  font-size: 17.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
  margin-bottom: 18px;
}
.problem-body p:last-child { color: #fff; font-weight: 600; }

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 30px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ember-wash);
  color: var(--ember-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.trail-svg { display: none; }
.how-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.how-cta-sub {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

/* ============ FEATURES (bento) ============ */
.features { background: var(--bone-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { border-color: var(--muted-2); box-shadow: var(--shadow-card); }
.feature.span-3 { grid-column: span 3; }
.feature.span-2 { grid-column: span 2; }
.feature.span-4 { grid-column: span 4; }
.feature.wide-row { grid-column: span 6; }
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature.span-3, .feature.span-2, .feature.span-4, .feature.wide-row { grid-column: span 1; }
}
.feature-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--ember-deep);
  text-transform: uppercase;
}
.feature h3 { font-size: 22px; line-height: 1.22; }
.feature p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 52ch;
  margin-top: auto;
}
.feature .em { color: var(--ember); }
.feature-stat-row { display: flex; align-items: baseline; gap: 14px; }
.feature-big-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ember);
}

/* ============ WHO FOR ============ */
.whoforlist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .whoforlist { grid-template-columns: 1fr; } }
.whofor-card {
  padding: 36px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.whofor-card:hover { transform: translateY(-3px); border-color: var(--muted-2); }
.whofor-card .wf-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ember-deep);
  background: var(--ember-wash);
  border-radius: 100px;
  padding: 5px 12px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.whofor-card h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.whofor-card h3 br { display: none; }
.whofor-card h3 .em { color: var(--ember); }
.whofor-card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }
.whofor-card .wf-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ember-deep);
}

/* ============ OBJECTIONS ============ */
.objections { background: var(--bone-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.obj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .obj-grid { grid-template-columns: 1fr; } }
.obj {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 28px;
}
.obj h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--ink);
}
.obj p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.obj-cta {
  margin-top: 40px;
  text-align: center;
}
.obj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ember-deep);
}
.obj-link .arrow { display: inline-block; transition: transform 0.15s ease; }
.obj-link:hover .arrow { transform: translateX(3px); }

/* ============ PRICING ============ */
.pricing-head { text-align: center; margin-bottom: 56px; }
.pricing-head .section-marker { margin-bottom: 14px; display: inline-block; }
.pricing-head h2 { margin: 0 auto 16px; max-width: 22ch; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.plan.featured {
  border: 2px solid var(--ember);
  box-shadow: 0 24px 48px -20px rgba(225, 78, 26, 0.28);
}
.plan-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.plan.featured .plan-tag {
  color: #fff;
  background: var(--ember);
  border-color: var(--ember);
}
.plan h3 { font-size: 24px; margin-bottom: 6px; }
.plan .plan-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.plan .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.plan .price-suffix {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.plan-list {
  list-style: none;
  margin: 24px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan-li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.plan-li::before {
  content: '';
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ember-wash);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.5 2.5 4.5-5' fill='none' stroke='%23C13E0F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.plan .btn-plan {
  background: var(--bone-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.plan .btn-plan:hover { border-color: var(--muted-2); }
.plan.featured .btn-plan {
  background: var(--ember);
  color: #fff;
  border-color: var(--ember);
  box-shadow: 0 1px 2px rgba(193, 62, 15, 0.28);
}
.plan.featured .btn-plan:hover { background: var(--ember-deep); }
.pricing-note {
  margin-top: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: var(--bone-2);
  border-radius: 12px;
}
.pricing-note p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.pricing-note strong { color: var(--ink); font-weight: 600; }

/* ============ TESTIMONIAL ============ */
.testimonial {
  background: var(--bone-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 104px 0;
}
.testimonial-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 48px 52px 42px;
  text-align: center;
}
.testimonial .section-marker { display: block; text-align: center; margin-bottom: 28px; }
.pull-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
}
.pull-quote .em { color: var(--ember); }
.big-q { display: none; }
.attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.attribution .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.attribution .name { font-weight: 700; color: var(--ink); }
.attribution .sep { color: var(--line); }
@media (max-width: 640px) { .testimonial-card { padding: 36px 26px 32px; } }

/* ============ FAQ ============ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: var(--muted-2); box-shadow: var(--shadow-card); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 0.15s ease;
}
.faq-q:hover { color: var(--ember-deep); }
.faq-q .plus {
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 24px;
  line-height: 1;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); color: var(--ember); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 24px 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 66ch;
}
.faq-a-inner a { color: var(--ember-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============ BIG CTA ============ */
.big-cta {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.big-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(820px 400px at 50% 130%, rgba(225, 78, 26, 0.26), transparent 70%);
  pointer-events: none;
}
.big-cta .container { position: relative; }
.big-cta h2 {
  color: #fff;
  font-size: clamp(36px, 5.4vw, 64px);
  max-width: 18ch;
  margin: 0 auto 24px;
}
.big-cta h2 .em { color: var(--ember); }
.big-cta p {
  max-width: 48ch;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.72);
  font-size: 18px;
}
.big-cta .btn-primary {
  background: var(--ember);
  color: #fff;
  font-size: 16px;
  padding: 17px 32px;
}
.big-cta .btn-primary:hover { background: #fff; color: var(--ink); }
.big-cta .trust {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}

@media (prefers-reduced-motion: reduce) {
  .mock-footer .live-dot { animation: none; }
}
