/* =========================================================================
   Roundmark - design system
   One file, no build step, vanilla CSS.
   Sections: tokens > reset > typography > layout > buttons > nav > cards
             > footer > landing components > utilities > responsive
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --ink: #171717;          /* near-black - headings, primary text */
  --accent: #4343d5;       /* indigo - CTAs, links, pins */
  --accent-dark: #3838bd;  /* indigo hover */
  --accent-2: #fb923c;     /* orange - eyebrows, badges, small highlights ONLY */
  --success: #22c55e;      /* green - resolved (tiny doses only) */
  --paper: #fcf8f9;        /* warm near-white page background */
  --tint: #f3eff4;         /* light neutral-violet - alternate section background */
  --muted: #6b7280;        /* muted grey - secondary text */
  --line: #e7e3ea;         /* hairline borders */
  --body: #3f3f46;         /* body copy on paper */
  --sub: #52525b;          /* slightly lighter than body, for lead paras */
  --footer-bg: #131316;    /* dark neutral - footer surface */
  --cta-from: #5b54e0;     /* indigo CTA gradient start */
  --cta-to: #4343d5;       /* indigo CTA gradient end */

  --wrap: 1140px;
  --radius: 14px;
  --shadow-soft: 0 20px 50px -24px rgba(23, 23, 23, 0.18);
  --shadow-lift: 0 40px 80px -34px rgba(23, 23, 23, 0.26);
  --serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---- Minimal reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
/* Anchor links land clear of the sticky nav */
:target { scroll-margin-top: 90px; }

/* ---- Typography ------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.7rem); line-height: 1.06; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

/* Larger intro paragraph */
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--sub);
  line-height: 1.65;
}

/* ---- Layout ----------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-alt { background: var(--tint); }

/* Centered section header block */
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .lead { margin-top: 18px; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #d6d2db;
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; border-radius: 8px; }

/* Text link with a trailing arrow */
.link-arrow {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---- Nav (sticky, blurred) ------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 248, 249, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { display: block; }
.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.lnk {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.16s ease;
}
.lnk:hover { color: var(--accent); }

/* ---- Cards ------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---- Screenshots ------------------------------------------------------ */
.shot {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
/* Elevated frame for the hero anchor shot */
.shot-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-lift);
}
.shot-frame .shot { box-shadow: none; }

/* ---- Inline animated mockups ------------------------------------------ */
/* The browser cards/panels are drawn (with their own soft shadows) inside
   each SVG, so the container itself stays transparent - no border, no frame,
   no shadow - and floats directly on the section background. */
.mockup {
  display: block;
  width: 100%;
  height: auto;
}
/* Reduced-motion: freeze every mockup on its final composed frame.
   The resting state already IS the finished scene, so simply disabling all
   animation leaves a complete, readable illustration. */
@media (prefers-reduced-motion: reduce) {
  .mockup * { animation: none !important; }
}

/* =========================================================================
   Landing components
   ========================================================================= */

/* ---- Hero ------------------------------------------------------------- */
.hero { padding: 80px 0 72px; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 { margin-bottom: 22px; }
.hero .sub {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--sub);
  line-height: 1.65;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-shot { margin-top: 56px; }

/* ---- Social proof strip ---------------------------------------------- */
.proof {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.proof-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ---- How it works (steps) -------------------------------------------- */
.steps { display: grid; gap: 76px; margin-top: 64px; }
.step {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.step-media { order: 1; }
.step-body { order: 2; }
/* Alternate the layout on every second step */
.step:nth-child(even) .step-media { order: 2; }
.step:nth-child(even) .step-body { order: 1; }
/* Numbered marker echoes the indigo comment pins inside the product */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 20px;
}
.step-body h3 { font-size: 1.55rem; margin-bottom: 12px; }
.step-body p { color: var(--sub); }

/* ---- Feature grid ----------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feature-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--ink);
  margin-bottom: 18px;
}
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; font-size: 1.18rem; }
.feature p { color: var(--sub); font-size: 0.97rem; margin: 0; }
/* Wide showcase image above the feature cards */
.features-lead { margin-bottom: 56px; }

/* ---- Pricing teaser --------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-soft);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-size: 1.2rem; margin-bottom: 6px; }
.price-amount {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1;
}
.price-per { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.price-desc { color: var(--sub); font-size: 0.95rem; margin: 14px 0 18px; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}
.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--body);
}
/* Indigo check glyph before each plan feature */
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; width: 100%; }
.pricing-note {
  text-align: center;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- FAQ -------------------------------------------------------------- */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Plus / minus indicator */
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin: 14px 0 0;
  color: var(--sub);
  max-width: 660px;
}

/* ---- Final CTA band --------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  text-align: center;
  padding: 92px 0;
}
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto 26px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); }
/* White button on the indigo band - indigo-on-indigo fails contrast */
.cta-band .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.cta-band .btn-primary:hover { background: #f1f0fb; color: var(--accent-dark); border-color: #f1f0fb; }

/* ---- Footer ----------------------------------------------------------- */
.footer {
  background: var(--footer-bg);
  color: rgba(244, 244, 245, 0.72);
  padding: 66px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { margin-bottom: 16px; }
.footer-brand p { max-width: 260px; color: rgba(244, 244, 245, 0.6); font-size: 0.95rem; }
.footer h4 {
  font-family: var(--sans);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer a {
  display: block;
  color: rgba(244, 244, 245, 0.7);
  text-decoration: none;
  padding: 5px 0;
  font-size: 0.95rem;
  transition: color 0.16s ease;
}
.footer a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(244, 244, 245, 0.5);
}

/* ---- Utilities -------------------------------------------------------- */
.hide-sm { }              /* visible by default; hidden under 720px below */
.center { text-align: center; }

/* Focus styles for keyboard users */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .price-card--featured { order: -1; } /* surface the popular plan first when stacked */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 26px; }
  /* Text first, image second on every step when stacked */
  .step-media, .step:nth-child(even) .step-media { order: 2; }
  .step-body, .step:nth-child(even) .step-body { order: 1; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 56px; }
  .hide-sm { display: none; }        /* collapse nav links; keep Sign in + Start free */
  .nav-links { gap: 14px; }
  .steps { gap: 56px; }
  .features { grid-template-columns: 1fr; }
  .cta-band { padding: 68px 0; }
  .hero-shot { margin-top: 40px; }
}

@media (max-width: 440px) {
  .brand span { font-size: 1.14rem; }
  .btn { padding: 13px 18px; }
}
