/* Sections CSS — shared across both directions; each direction overrides key tokens */

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 85%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in oklch, var(--rule) 70%, transparent);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.nav-brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--ink);
  position: relative;
  box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1px var(--ink);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color 140ms var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.on { color: var(--ink); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-iconbtn {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  display: grid; place-items: center; font-size: 15px;
  transition: all 140ms var(--ease);
}
.nav-iconbtn:hover { border-color: var(--rule-strong); background: var(--paper-2); }
.nav-signin { font-size: 14px; color: var(--ink-2); padding: 8px 0; }
.nav-signin:hover { color: var(--ink); }
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* Email form */
.emailform { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; max-width: 520px; }
.emailform .input { flex: 1 1 240px; min-width: 240px; }
.emailform .btn { white-space: nowrap; }
.emailform-hint { flex-basis: 100%; font-size: 12.5px; color: var(--ink-3); font-family: var(--font-mono); margin-top: 2px; }
.emailform-msg.err { flex-basis: 100%; color: oklch(0.55 0.18 25); font-size: 13px; }

/* Problem */
.sec-problem .problem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  border-radius: 14px; overflow: hidden;
}
.problem-card { background: var(--paper); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.problem-k { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.1em; }
.problem-card h3 { font-size: 21px; }
.problem-card p { font-size: 14.5px; line-height: 1.55; }
@media (max-width: 960px) { .sec-problem .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sec-problem .problem-grid { grid-template-columns: 1fr; } }

/* Features */
.sec-features { background: var(--paper-2); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.feat-card { background: var(--paper); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; min-height: 240px; transition: background 180ms var(--ease); }
.feat-card:hover { background: color-mix(in oklch, var(--paper) 92%, var(--accent) 8%); }
.feat-glyph {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
}
.feat-card h3 { font-size: 22px; }
.feat-card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 960px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .feat-grid { grid-template-columns: 1fr; } }

/* How it works */
.sec-how .how-wrap { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 56px; align-items: start; }
.how-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.how-step {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 22px 22px 22px 18px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 180ms var(--ease);
  border: 1px solid transparent;
}
.how-step:hover { background: var(--paper-2); }
.how-step.on { background: var(--paper-2); border-color: var(--rule); }
.how-step-num { font-size: 13px; color: var(--ink-3); padding-top: 6px; letter-spacing: 0.08em; }
.how-step.on .how-step-num { color: var(--accent); }
.how-step h3 { font-size: 22px; margin-bottom: 4px; }
.how-step p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.how-step-bar { position: absolute; left: 18px; right: 22px; bottom: 10px; height: 2px; background: var(--rule); border-radius: 1px; overflow: hidden; }
.how-step-bar span { display: block; height: 100%; background: var(--accent); transition: width 5.3s linear; }
.how-step:not(.on) .how-step-bar span { transition: width 0.2s; }

.how-screen { position: relative; min-height: 520px; }
.how-browser {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px color-mix(in oklch, var(--ink) 30%, transparent),
              0 10px 30px -10px color-mix(in oklch, var(--ink) 15%, transparent);
}
.how-browser-body {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f3f1ee;
  overflow: hidden;
}
.how-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms var(--ease);
}
.how-shot.on { opacity: 1; }

.how-controls { margin-top: 32px; display: flex; justify-content: flex-end; }
.how-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--rule);
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 12.5px; font-family: var(--font-mono);
}
.how-toggle-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.how-toggle-dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ok) 25%, transparent); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

@media (max-width: 960px) {
  .sec-how .how-wrap { grid-template-columns: 1fr; gap: 32px; }
  .how-screen { min-height: 460px; }
}

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.price-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
}
.price-card.featured {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 60px -30px color-mix(in oklch, var(--ink) 30%, transparent);
}
.price-badge {
  position: absolute; top: -12px; left: 36px;
  background: var(--accent); color: var(--accent-ink);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.price-name { font-family: var(--font-display); font-size: 19px; color: var(--ink-2); }
.price-amt { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.price-num { font-family: var(--font-display); font-size: 56px; font-weight: 400; letter-spacing: -0.03em; }
.price-per { color: var(--ink-3); font-size: 15px; }
.price-desc { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; }
.price-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); padding-top: 20px; }
.price-feats li { font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.price-feats li::before {
  content: "✓";
  color: var(--accent);
  font-size: 14px;
  width: 16px;
}
.price-chip {
  margin-left: 6px; font-size: 10.5px; font-family: var(--font-mono); color: var(--ink-3);
  background: var(--paper-2); padding: 2px 7px; border-radius: 999px; border: 1px solid var(--rule);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.price-foot { font-size: 12.5px; color: var(--ink-3); text-align: center; font-family: var(--font-mono); }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }

/* Testimonials */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tm-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 30px;
  margin: 0;
  display: flex; flex-direction: column; gap: 24px;
}
.tm-card blockquote { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.45; color: var(--ink); position: relative; }
.tm-quote { color: var(--accent); font-size: 40px; line-height: 0; margin-right: 2px; vertical-align: -12px; }
.tm-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tm-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-weight: 600; font-size: 15px;
}
.tm-name { font-size: 14px; font-weight: 500; }
.tm-role { font-size: 12.5px; color: var(--ink-3); font-family: var(--font-mono); }
@media (max-width: 960px) { .tm-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 64px; align-items: start; }
.faq-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; background: transparent; border: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; text-align: left;
  font-family: var(--font-display); font-size: 20px; color: var(--ink);
  cursor: pointer;
}
.faq-plus { color: var(--ink-3); font-size: 24px; transition: color 140ms var(--ease); font-family: var(--font-ui); font-weight: 300; }
.faq-q:hover .faq-plus { color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 280ms var(--ease); }
.faq-item.on .faq-a { max-height: 240px; }
.faq-a p { padding: 0 0 24px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.flink { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Footer CTA */
.sec-footercta { background: var(--ink); color: var(--paper); padding: 120px 0; }
.sec-footercta h2, .sec-footercta .eyebrow { color: var(--paper); }
.sec-footercta .eyebrow { color: color-mix(in oklch, var(--paper) 65%, transparent); }
.sec-footercta p { color: color-mix(in oklch, var(--paper) 75%, transparent); }
.footercta-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sec-footercta .input {
  background: color-mix(in oklch, var(--paper) 10%, transparent);
  border-color: color-mix(in oklch, var(--paper) 25%, transparent);
  color: var(--paper);
}
.sec-footercta .input::placeholder { color: color-mix(in oklch, var(--paper) 50%, transparent); }
.sec-footercta .btn-primary { background: var(--paper); color: var(--ink); }
.sec-footercta .btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.sec-footercta .emailform-hint { color: color-mix(in oklch, var(--paper) 55%, transparent); }
@media (max-width: 820px) { .footercta-wrap { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding: 40px 0 60px; background: var(--paper-2); border-top: 1px solid var(--rule); }
.foot-row { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.foot-links { display: flex; gap: 24px; justify-content: center; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }
.foot-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-3); font-family: var(--font-mono); }
@media (max-width: 820px) {
  .foot-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .foot-links { justify-content: center; }
}
