/* The sales website. Colours follow the app (coral accent, steel ink). */
:root {
  --accent: #e46b56;
  --accent-dark: #c9533f;
  --accent-soft: #fdeae6;
  --ink: #1f2933;
  --ink-soft: #52606d;
  --muted: #7b8794;
  --line: #e4e7eb;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --dark: #1c2430;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 41, 51, .08);
  --shadow-lg: 0 24px 60px rgba(31, 41, 51, .16);
  font-synthesis: none;
}

* { box-sizing: border-box; }

/* hidden wins over display rules below (form rows, labels, the offer). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow { margin-bottom: .6em; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .75em 1.4em; border: 2px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(228, 107, 86, .35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: .45em 1em; font-size: .92rem; }
.btn-lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---- Header ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(31, 41, 51, .05); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent-dark); }
.topbar-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.link-muted { color: var(--ink-soft); text-decoration: none; font-weight: 500; cursor: pointer; }
.menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; border: 0; background: none; cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---- Hero ---- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; background:
  radial-gradient(900px 400px at 85% 0%, var(--accent-soft), transparent 70%),
  radial-gradient(700px 400px at 0% 100%, #eef2f7, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .95rem; }
.check { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-shot { position: relative; }
.browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef1f5; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5dd; }
.browser-bar i:first-child { background: #f5a097; }
.browser-bar i:nth-child(2) { background: #f6cf74; }
.browser-bar i:nth-child(3) { background: #8fd19e; }
.hero .browser { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
.float-card { position: absolute; left: -28px; bottom: -22px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); font-size: .92rem; color: var(--ink-soft); }
.float-card strong { color: var(--ink); }
.float-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); font-size: 1.2rem; }

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 48px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card p { margin: 0; color: var(--ink-soft); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px; background: var(--accent-soft); font-size: 1.35rem; }

.problem .cards-3 { margin: 36px auto; }
.card.pain { border-top: 4px solid var(--accent); }
.solution { padding: 18px 24px; border-radius: var(--radius); background: var(--accent-soft); font-size: 1.1rem; }

.feature-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; margin-bottom: 80px; }
.feature-row.reverse .feature-text { order: 2; }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 30px; margin: 8px 0; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.features-grid .card { transition: transform .2s ease, box-shadow .2s ease; }
.features-grid .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 0 40px; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps p { margin: 0; color: var(--ink-soft); }
.step-no { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { background: var(--bg-alt); font-weight: 700; }
.compare td:first-child { font-weight: 600; }
.compare td:nth-child(2) { color: var(--muted); }
.compare .ours { background: var(--accent-soft); color: var(--ink); font-weight: 600; }

.trust h3 { font-size: 1.05rem; }

/* ---- Pricing ---- */
.billing-toggle { display: inline-flex; padding: 4px; margin-top: 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.billing-toggle button { padding: .5em 1.2em; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.billing-toggle button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(31, 41, 51, .1); }
.save { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .8rem; }
.offer { max-width: 760px; margin: 0 auto 32px; padding: 14px 20px; border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); text-align: center; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.plan h3 { margin-bottom: .2em; font-size: 1.4rem; }
.plan-for { color: var(--muted); font-size: .95rem; }
.price { margin: .4em 0 0; }
.amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; }
.price-note { min-height: 2.8em; color: var(--muted); font-size: .9rem; }
.plan .ticks { margin-top: 24px; }
.ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.calculator { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; max-width: 900px; margin: 44px auto 18px; padding: 22px 26px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.calculator label { font-weight: 600; }
.calculator input { width: 100%; accent-color: var(--accent); }
.calculator output { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); }
.calculator output strong { color: var(--ink); font-size: 1.15rem; }

.guarantees { text-align: center; }
.guarantee { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.guarantee strong { font-size: 1.1rem; }
.guarantee span { color: var(--ink-soft); }

.migrate { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; border-radius: 20px; background: var(--dark); color: #e5e9f0; }
.migrate h2 { color: #fff; }
.migrate .lead { color: #c3cbd6; margin: 0; }
.migrate > div { max-width: 680px; }

/* ---- FAQ ---- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 14px; padding: 30px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; padding: .7em .85em; border: 1px solid #cfd5dd; border-radius: 9px;
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 107, 86, .2); }
.form .invalid { border-color: #dc2626; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { margin-left: 2px; color: var(--accent); }
.form label.consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-soft); }
.consent input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { padding: 10px 14px; border-radius: 9px; background: #fef2f2; color: #991b1b; font-size: .92rem; }
.form-done { display: grid; gap: 4px; padding: 14px 16px; border-radius: 9px; background: #f0fdf4; color: #166534; }

.final { padding: 88px 0; background: linear-gradient(135deg, var(--accent), #d0563f); color: #fff; }
.final h2 { color: #fff; }
.final .lead { color: rgba(255, 255, 255, .88); margin-bottom: 28px; }

/* ---- Footer ---- */
.footer { padding: 48px 0 28px; background: var(--dark); color: #c3cbd6; }
.footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 32px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-items: start; }
.footer-links nav { display: grid; gap: 8px; }
.footer-links a { color: #c3cbd6; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer .muted { color: #8a96a6; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid #2d3846; }

/* ---- Appearing on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Small screens ---- */
@media (max-width: 960px) {
  .hero-grid, .feature-row, .contact-grid { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text { order: 0; }
  .hero .browser { transform: none; }
  .float-card { left: 12px; }
  .cards-3, .plans, .steps { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .plan.featured { transform: none; }
  .migrate { flex-direction: column; align-items: flex-start; padding: 32px; }
  .calculator { grid-template-columns: 1fr; text-align: center; }
  .calculator output { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .hide-sm { display: none; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .cards-4, .form-row { grid-template-columns: 1fr; }
  .topbar-actions .btn { display: none; }
}
