/* Tokens come from tokens.css. This file only adds what is specific to the marketing
   page - the shared set had a second, older copy of these values living here, which is
   how the landing page kept its cyan buttons after the accent moved to the brand orange. */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 600; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 16px 40px;
  background: rgba(14, 18, 22, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; }
/* ------------------------------------------------------------------ brand */
:root {
  --brand-accent: #FF5C1A;   /* crop marks; see public/brand/README.md */
  --brand-ink: #12141A;      /* the charcoal the app icon sits on */
}
.brand .mark { flex: none; display: block; }
.brand .mark + * { margin-left: 0; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--muted); font-size: 14.5px; }
.nav nav a:hover { color: var(--text); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--line); background: var(--raised); }
.btn.big { padding: 13px 24px; font-size: 16px; border-radius: 10px; }

/* ------------------------------------------------------------------ hero */
main { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

/* The demo stacks under the copy rather than sitting beside it. Half a hero column is
   about 450px, which is too small to read a UI in - and reading the UI is the entire point
   of showing a recording rather than an illustration. Full width it is roughly 1080. */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 44px;
  padding: 84px 0 64px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.lede { color: var(--muted); font-size: 17.5px; max-width: 52ch; margin: 22px 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.micro { color: var(--faint); font-size: var(--fs); margin-top: 18px; }

/* The lede is capped at 52ch for readability, which left the right of the row empty. The
   brief fills it with the worked example, and collapses under the copy on a phone. */
.hero-top {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px; align-items: start;
}

.brief {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 24px;
}
.brief-label {
  margin: 0; color: var(--faint);
  font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}
/* Set at reading size rather than as code: the whole point is that it is a plain sentence. */
.brief-prompt {
  margin: 12px 0 22px; color: var(--text); font-size: 16.5px; line-height: 1.5;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.brief-out { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.brief-out li {
  color: var(--muted); font-size: 14.5px; line-height: 1.45;
  padding-left: 18px; position: relative;
}
.brief-out li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 8px; height: 1px; background: var(--accent);
}

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; border-radius: 14px; }

.demo {
  width: 100%; height: auto; display: block;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel);
  /* A recording of a dark UI on a dark page needs an edge, or it bleeds into the ground. */
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

/* A visible control, because autoplaying video with no way to stop it is a dark pattern
   even when it is silent. It sits over the corner rather than below, so it costs no layout. */
.demo-toggle {
  position: absolute; right: 10px; bottom: 10px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(11, 13, 17, .72); border: 1px solid var(--line);
  color: var(--muted); font-size: 12px; cursor: pointer;
  opacity: 0; transition: opacity .15s ease, color .15s ease;
}
.hero-art:hover .demo-toggle, .demo-toggle:focus-visible { opacity: 1; }
.demo-toggle:hover { color: var(--text); }

/* Always visible where motion is unwelcome, so stopping it takes one click rather than a
   hover someone may not think to try. */
@media (prefers-reduced-motion: reduce) {
  .demo-toggle { opacity: 1; }
}

/* ----------------------------------------------------------------- strip */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  margin-bottom: 96px;
}
.strip div { background: var(--panel); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.strip strong { font-weight: 600; font-size: 15px; }
.strip span { color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------------- how */
section h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 36px; }
.how { padding-bottom: 96px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.steps li { position: relative; padding-left: 52px; }
.steps .n {
  position: absolute; left: 0; top: 2px;
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-weak); color: var(--accent); font-size: var(--fs-md); font-weight: 600;
  border: 1px solid rgba(255, 92, 26, .3);
}
.steps h3 { font-size: 17px; margin-bottom: 7px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* -------------------------------------------------------------- features */
.features { padding-bottom: 96px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid article {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px;
}
.grid h3 { font-size: 16px; margin-bottom: 8px; }
.grid p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------------------------------------------------------------- closer */
.closer {
  text-align: center; padding: 72px 0 96px;
  border-top: 1px solid var(--line);
}
.closer h2 { margin-bottom: 28px; }

footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: 28px 40px 48px;
  color: var(--faint); font-size: var(--fs); border-top: 1px solid var(--line);
}

/* .btn sets display, which beats the [hidden] attribute's own display:none - so a button
   marked hidden stays on screen. Every sign-in-dependent control in the nav is a .btn, so
   without this the page shows "Sign in" and "Your projects" at the same time. */
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- pricing */
.pricing { max-width: 1080px; margin: 0 auto 88px; padding: 0 40px; }
.pricing h2 { margin-bottom: 10px; }
.section-lede {
  max-width: 46rem; color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 34px;
}

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }

.tier {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; height: 100%;
}
/* One tier carries the accent - the one with a price on it. Everything else stays quiet. */
.tier.featured { border-color: var(--accent); }

.tier h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); }
.tier .price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tier .amount { font-size: 30px; font-weight: 600; color: var(--text); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; }
.tier .per { font-size: 12.5px; color: var(--faint); }
.tier-lede { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tier li { font-size: var(--fs); color: var(--text); line-height: 1.45; padding-left: 18px; position: relative; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5;
}
.tier li .each { color: var(--faint); font-size: 12px; }
.tier .btn { margin-top: auto; text-align: center; }

.tier-head { display: flex; align-items: center; gap: 10px; }
.tier-head h3 { margin: 0; }
.tier-head .currency-switch { margin-left: auto; }
.currency-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.currency-switch button {
  background: transparent; border: none; border-radius: 0; padding: 3px 10px;
  font-size: 12px; color: var(--faint); cursor: pointer;
}
.currency-switch button.on { background: var(--raised); color: var(--text); }

.pricing-foot {
  margin: 26px 0 0; font-size: 13.5px; color: var(--faint); line-height: 1.6; max-width: 46rem;
}
.pricing-foot a { color: var(--muted); }

/* -------------------------------------------------------------------- faq */
.faq { max-width: 1080px; margin: 0 auto 88px; padding: 0 40px; }
.faq h2 { margin-bottom: 18px; }
.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  font-size: 16px; font-weight: 500; color: var(--text);
  display: flex; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* The marker is drawn rather than a character, so it can rotate on open. */
.faq-item summary::before {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg); transition: transform .18s ease; margin-left: 2px;
}
.faq-item[open] summary::before { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  margin: 0 0 18px 21px; max-width: 46rem;
  color: var(--muted); font-size: 15px; line-height: 1.65;
}

/* The policies Razorpay asks to see, and a customer looks for before paying. */
.legal-links { display: flex; gap: 14px; flex-wrap: wrap; }
.legal-links a { color: inherit; text-decoration: none; }
.legal-links a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 860px) {
  .nav { padding: 14px 20px; gap: 16px; }
  .nav nav { display: none; }
  main { padding: 0 20px; }
  .hero { gap: 32px; padding: 52px 0 44px; }
  .hero-top { grid-template-columns: 1fr; gap: 28px; }
  .strip, .steps, .grid { grid-template-columns: 1fr; }
  .strip { margin-bottom: 64px; }
  footer { padding: 24px 20px 40px; }
  .pricing { padding: 0 20px; }
  .tiers { grid-template-columns: 1fr; }
}
