/* ============================================================================
   ReplySathi landing page
   Palette: peacock teal #12897b on warm paper. Deliberately NOT a SaaS template:
   no gradient washes, no all-caps eyebrows, no grid of identical rounded cards.
   The signature moves are the serif display face, hairline rules instead of
   card borders, and the live tweet mock in the hero.
   ========================================================================= */

:root {
  --paper:      #fbf9f5;
  --paper-2:    #f4f1ea;
  --ink:        #101d1b;
  --ink-2:      #3d4f4c;
  --muted:      #6b7a77;
  --teal:       #12897b;
  --teal-deep:  #0b5f56;
  --teal-wash:  rgba(18, 137, 123, 0.08);
  --line:       rgba(16, 29, 27, 0.13);
  --line-soft:  rgba(16, 29, 27, 0.07);
  --card:       #ffffff;
  --shadow:     0 1px 2px rgba(16,29,27,.05), 0 12px 32px -12px rgba(16,29,27,.18);
  --radius:     14px;
  --serif:      "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap:       1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #0c1211;
    --paper-2:   #121a19;
    --ink:       #e9f0ee;
    --ink-2:     #b3c2bf;
    --muted:     #869894;
    --teal:      #2fb3a2;
    --teal-deep: #4fd0be;
    --teal-wash: rgba(47, 179, 162, 0.12);
    --line:      rgba(233, 240, 238, 0.16);
    --line-soft: rgba(233, 240, 238, 0.08);
    --card:      #141d1c;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 400; letter-spacing: -0.015em; }
p { margin: 0; }
img { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────── buttons ─────────────────────────── */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font: 600 15px/1 var(--sans);
  padding: 14px 22px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 17px; font-size: 14px; }
.btn-ghost {
  background: transparent; color: var(--teal); border-color: var(--line);
}
.btn-ghost:hover { background: var(--teal-wash); color: var(--teal); border-color: var(--teal); }

/* ─────────────────────────── nav ─────────────────────────── */
.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--teal); color: #fff; border-radius: 8px; font-size: 15px;
}
.brand-name { font: 400 22px/1 var(--serif); letter-spacing: -.01em; }
.nav-links { margin-left: auto; display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 15px;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--teal); border-bottom-color: var(--teal); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .nav .btn-sm { margin-left: auto; }
}

/* ─────────────────────────── hero ─────────────────────────── */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}
.kicker {
  font-size: 14px; color: var(--teal); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--teal); display: inline-block;
}
h1 { font-family: var(--serif); font-size: clamp(42px, 6.4vw, 70px); }
h1 em { font-style: italic; color: var(--teal); }
.lede {
  margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 30em;
}
.lede-narrow { max-width: 34em; margin-left: auto; margin-right: auto; }
.micro { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 33em; }
.micro-center { margin: 26px auto 0; text-align: center; }

/* signup form */
.signup { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 470px; }
.signup input {
  flex: 1 1 220px;
  font: 400 16px var(--sans);
  padding: 14px 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-wash); }
.signup input[aria-invalid="true"] { border-color: #c5503f; }
.form-msg { flex: 1 0 100%; font-size: 14px; min-height: 20px; color: var(--teal); }
.form-msg[data-err="1"] { color: #c5503f; }
.signup-lg { margin: 30px auto 0; }

/* ── the hero demo: fake tweet + panel ── */
.hero-demo { position: relative; }
.demo-frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
  position: relative;
}
/* a soft teal halo, rotated behind the frame — the one decorative flourish */
.demo-frame::before {
  content: "";
  position: absolute; inset: -14px -10px -10px -14px;
  border: 1px solid var(--teal);
  opacity: .22;
  border-radius: var(--radius);
  transform: rotate(-1.4deg);
  z-index: -1;
}
.tweet { display: flex; gap: 12px; }
.tw-avatar {
  flex: 0 0 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: #fff; display: grid; place-items: center; font: 600 17px var(--sans);
}
.tw-body { flex: 1; min-width: 0; }
.tw-head { font-size: 15px; }
.tw-head span { color: var(--muted); font-weight: 400; }
.tw-text { margin-top: 4px; font-size: 16px; line-height: 1.45; }
.tw-actions {
  margin-top: 14px; display: flex; align-items: center; gap: 26px;
  font-size: 13px; color: var(--muted);
}
.tw-act i { font-style: normal; }
.tw-spark {
  margin-left: auto;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--teal); background: var(--teal-wash);
  font-size: 15px;
  animation: sparkPulse 3.4s ease-in-out infinite;
}
@keyframes sparkPulse {
  0%, 62%, 100% { box-shadow: 0 0 0 0 rgba(18,137,123,0); }
  70%           { box-shadow: 0 0 0 7px rgba(18,137,123,.16); }
  78%           { box-shadow: 0 0 0 0 rgba(18,137,123,0); }
}

.panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-2);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; border-bottom: 1px solid var(--line-soft);
}
.panel-title { font-size: 13px; font-weight: 600; color: var(--teal); }
.panel-tone { font-size: 12px; color: var(--muted); }
.sug {
  display: block; width: 100%; text-align: left;
  font: 400 14.5px/1.5 var(--sans);
  color: var(--ink);
  background: none; border: 0; border-top: 1px solid var(--line-soft);
  padding: 12px 13px; cursor: default;
  animation: sugIn .5s ease both;
}
.sug:first-of-type { border-top: 0; }
.sug:hover { background: var(--teal-wash); }
.sug:nth-of-type(1) { animation-delay: .25s; }
.sug:nth-of-type(2) { animation-delay: .45s; }
.sug:nth-of-type(3) { animation-delay: .65s; }
@keyframes sugIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.demo-cap { margin-top: 16px; font-size: 13.5px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .tw-spark { animation: none; }
  .sug { animation: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-bottom: 64px; }
  .hero-demo { max-width: 520px; }
}

/* ─────────────────────────── generic sections ─────────────────────────── */
.band, .voice, .faq, .cta {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 84px 24px;
  border-top: 1px solid var(--line-soft);
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  max-width: 17em;
}

/* ─────────────────────────── steps ─────────────────────────── */
.steps {
  list-style: none; margin: 46px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.steps li { padding: 0 32px; border-left: 1px solid var(--line-soft); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps li:last-child { padding-right: 0; }
.step-n {
  font: 400 36px/1 var(--serif); color: var(--teal); opacity: .55;
  display: block; margin-bottom: 12px;
}
.steps h3 { font-size: 21px; font-weight: 600; font-family: var(--sans); letter-spacing: -.01em; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

@media (max-width: 840px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps li { padding: 0 0 0 20px; border-left: 2px solid var(--teal-wash); }
  .steps li:first-child { padding-left: 20px; border-left: 2px solid var(--teal-wash); }
}

/* ─────────────────────────── voice compare ─────────────────────────── */
.voice-intro { text-align: center; }
.voice-intro .sec-title { margin: 0 auto; }
.compare {
  margin-top: 46px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.compare-second { margin-top: 26px; grid-template-columns: 1fr; }
.cmp { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.cmp figcaption { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.cmp blockquote {
  margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--ink);
  padding-left: 16px; border-left: 2px solid var(--line);
}
.cmp-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.cmp-bad blockquote { color: var(--muted); border-left-color: rgba(197,80,63,.55); }
.cmp-good { border-color: rgba(18,137,123,.34); background: var(--teal-wash); }
.cmp-good blockquote { border-left-color: var(--teal); }
.cmp-good figcaption { color: var(--teal); }

.diffs {
  margin: 46px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px;
}
.diffs li {
  font-size: 16px; color: var(--ink-2);
  padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.diffs b { color: var(--ink); font-weight: 600; }

@media (max-width: 800px) {
  .compare, .diffs { grid-template-columns: 1fr; }
}

/* ─────────────────────────── pricing ─────────────────────────── */
.price-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.plans {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.plan { padding: 34px 28px; border-left: 1px solid var(--line-soft); position: relative; display: flex; flex-direction: column; }
.plan:first-child { border-left: 0; }
.plan-on { background: var(--teal-wash); box-shadow: inset 0 3px 0 var(--teal); }
.plan-tag {
  position: absolute; top: 14px; right: 18px;
  font-size: 11.5px; color: var(--teal); font-weight: 600;
}
.plan h3 { font-size: 15px; font-weight: 600; font-family: var(--sans); color: var(--muted); letter-spacing: .01em; }
.price { margin-top: 12px; font-family: var(--serif); font-size: 46px; line-height: 1; }
.price small { font: 400 14px var(--sans); color: var(--muted); margin-left: 7px; }
.plan-for { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); min-height: 3em; }
.plan ul { list-style: none; margin: 20px 0 26px; padding: 0; }
.plan li { font-size: 15px; color: var(--ink-2); padding: 7px 0 7px 24px; position: relative; }
.plan li::before {
  content: "✦"; position: absolute; left: 0; top: 7px; color: var(--teal); font-size: 12px;
}
.plan .btn, .plan .btn-ghost { margin-top: auto; text-align: center; }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1px solid var(--line-soft); }
  .plan:first-child { border-top: 0; }
  .plan-for { min-height: 0; }
}

/* ─────────────────────────── faq ─────────────────────────── */
.faq .sec-title { margin-bottom: 34px; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0;
  font-size: 18px; font-weight: 500; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--teal); font-size: 22px; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--teal); }
.faq details p {
  padding: 0 60px 24px 0; color: var(--ink-2); font-size: 16.5px; max-width: 62em;
}

/* ─────────────────────────── cta + footer ─────────────────────────── */
.cta { text-align: center; padding-top: 92px; padding-bottom: 92px; }
.cta h2 { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 50px); }
.cta > p { margin: 20px auto 0; max-width: 37em; color: var(--ink-2); font-size: 18px; }

.foot {
  max-width: var(--wrap); margin: 0 auto; padding: 34px 24px 56px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px;
}
.foot-brand { font: 400 19px var(--serif); }
.foot-brand span { color: var(--teal); }
.foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover { color: var(--teal); }
.foot-fine { flex: 1 0 100%; font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .band, .voice, .faq, .cta { padding: 60px 20px; }
  .hero { padding: 40px 20px 56px; }
  .nav { padding: 18px 20px; }
  .foot { padding: 28px 20px 44px; }
  .foot-links { margin-left: 0; }
  .signup input { flex-basis: 100%; }
  .signup .btn { width: 100%; }
}
