/* Quorfield landing. Colours follow the product (apps/web styles.css): teal primary, dark green-grey sidebar. */
:root {
  --ink: #14201e;
  --text: #2a3533;
  --muted: #5d6967;
  --line: #e0e7e5;
  --bg: #f5f7f6;
  --surface: #fff;
  --teal: #176f68;
  --teal-dark: #0f524c;
  --teal-soft: #e5f1ee;
  --night: #15211f;
  --night-2: #1d2a28;
  --mint: #8fd3c4;
  --amber: #b9792a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 32, 30, .06), 0 12px 32px rgba(20, 32, 30, .08);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .12), 0 30px 80px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; line-height: 1.55; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.022em; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 750; max-width: 20ch; }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; padding: .1em .4em; border-radius: 6px; background: rgba(23, 111, 104, .1); color: var(--teal-dark); }
.i { flex: none; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
section { padding: clamp(72px, 9vw, 120px) 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.eyebrow--light { color: var(--mint); }
.section-lead { margin-top: 16px; max-width: 60ch; color: var(--muted); font-size: 19px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .tabs button:focus-visible, .period button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.btn--sm { padding: 8px 14px; font-size: 15px; }
.btn--lg { padding: 15px 24px; font-size: 17px; }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { background: var(--teal-soft); border-color: var(--teal); }
.btn--light { background: #fff; color: var(--teal-dark); }
.btn--light:hover { background: var(--teal-soft); }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(21, 33, 31, .92); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.logo__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #e7f2ef; color: #1e625c; font-size: 17px; }
.nav__links { display: flex; gap: 26px; margin-left: 20px; }
.nav__links a { color: #c4d1ce; text-decoration: none; font-size: 15px; font-weight: 550; }
.nav__links a:hover { color: #fff; }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.langs a { padding: 4px 9px; border-radius: 6px; color: #b5c3c0; font-size: 13px; font-weight: 650; text-decoration: none; }
.langs a:hover { color: #fff; }
.langs a[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; }

/* Hero */
.hero { position: relative; padding: clamp(64px, 9vw, 112px) 0 0; color: #d4dfdc; background:
  radial-gradient(900px 420px at 15% 0%, rgba(51, 140, 125, .35), transparent 60%),
  radial-gradient(700px 380px at 90% 10%, rgba(143, 211, 196, .14), transparent 60%),
  linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: var(--bg); }
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(40px, 6.4vw, 74px); font-weight: 780; max-width: 17ch; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero__lead { margin-top: 24px; max-width: 64ch; font-size: clamp(17px, 1.6vw, 20px); color: #bccac7; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__creds { margin-top: 16px; font-size: 14px; color: #93a5a1; }
.hero__creds code { background: rgba(255, 255, 255, .1); color: #e7f2ef; }
.hero__shot { position: relative; z-index: 1; margin-top: clamp(48px, 6vw, 72px); }

.browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.browser__bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef2f1; border-bottom: 1px solid var(--line); }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfd8d6; }
.browser--hero { box-shadow: var(--shadow-lg); border-color: rgba(255, 255, 255, .12); }

/* Pains */
.pains { padding-top: clamp(64px, 8vw, 96px); }
.pains__title { max-width: 36ch; font-size: clamp(26px, 3.2vw, 36px); }
.pains__grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: pain; }
.pains__grid li { counter-increment: pain; padding: 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pains__grid li::before { content: "0" counter(pain); font-size: 13px; font-weight: 700; color: var(--amber); }
.pains__grid strong { color: var(--ink); font-size: 17px; line-height: 1.3; }
.pains__grid span { color: var(--muted); font-size: 15px; }
.replaces { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; color: var(--muted); font-size: 15px; }
.replaces span { font-weight: 700; color: var(--ink); margin-right: 4px; }
.replaces s { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px dashed #c9d3d1; text-decoration-color: rgba(185, 121, 42, .8); text-decoration-thickness: 2px; }

/* Roles */
.roles { background: var(--surface); border-block: 1px solid var(--line); }
.tabs { margin: 36px 0 32px; display: inline-flex; gap: 4px; padding: 5px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--teal); color: #fff; box-shadow: 0 2px 8px rgba(23, 111, 104, .3); }
.panel[hidden] { display: none; }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.panel h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 750; }
.panel__lead { margin-top: 12px; color: var(--muted); font-size: 18px; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.points li { display: flex; gap: 12px; }
.points .i { margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); stroke-width: 3; }
.points strong { display: block; color: var(--ink); }
.points span { color: var(--muted); font-size: 15.5px; }
.panel__result { margin: 26px 0 14px; padding: 14px 18px; border-left: 3px solid var(--amber); background: #fbf6ee; color: var(--ink); font-weight: 650; border-radius: 0 10px 10px 0; }
.panel__shot { position: sticky; top: 96px; }

/* Features */
.features__grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features__grid li { padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s; }
.features__grid li:hover { border-color: #b9d6cf; box-shadow: var(--shadow); transform: translateY(-2px); }
.features__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--teal-soft); color: var(--teal); margin-bottom: 16px; }
.features__grid h3 { font-size: 17px; }
.features__grid p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Gallery */
.gallery { background: linear-gradient(180deg, var(--bg), #eaf1ef); }
.gallery__grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; font-weight: 650; color: var(--ink); font-size: 15px; }

/* Trust */
.trust { background: var(--night-2); color: #c4d1ce; }
.trust h2 { color: #fff; max-width: 24ch; }
.trust__grid { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust__grid li { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.trust__grid .i { color: var(--mint); width: 26px; height: 26px; }
.trust__grid h3 { color: #fff; font-size: 18px; }
.trust__grid p { margin-top: 6px; font-size: 15px; color: #a9bab6; }

/* Pricing */
.period { margin-top: 32px; display: inline-flex; padding: 5px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.period button { padding: 10px 18px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; }
.period button em { font-style: normal; font-size: 13px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fbf0df; color: var(--amber); }
.period button[aria-checked="true"] { background: var(--ink); color: #fff; }
.period button[aria-checked="true"] em { background: rgba(255, 255, 255, .16); color: #ffd9a3; }
.plans { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 18px; align-items: start; }
.plan { padding: 30px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--teal); position: relative; }
.plan header { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 22px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); }
.plan__tagline { margin-top: 8px; color: var(--muted); font-size: 15.5px; min-height: 48px; }
.plan__price { margin-top: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan__amount { font-size: 52px; font-weight: 780; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.plan__unit { color: var(--muted); font-size: 15px; }
.plan__billing { margin: 6px 0 22px; font-size: 14px; color: var(--muted); }
.plan__features { list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 15.5px; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; }
.plan__features .i { color: var(--teal); margin-top: 3px; stroke-width: 2.6; }
.calc { padding: 28px 24px; border-radius: 18px; background: var(--ink); color: #c4d1ce; }
.calc h3 { color: #fff; }
.calc label { display: block; margin-top: 18px; font-size: 15px; }
.calc output { color: #fff; font-weight: 750; font-size: 20px; }
.calc input[type=range] { width: 100%; margin: 14px 0 6px; accent-color: var(--mint); }
.calc dl { margin: 16px 0 0; display: grid; gap: 12px; }
.calc dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.calc dt { font-size: 15px; }
.calc dd { margin: 0; text-align: right; }
.calc dd strong { color: #fff; font-size: 24px; letter-spacing: -.02em; }
.calc__unit { font-size: 13px; }
.calc__note { margin-top: 16px; font-size: 13.5px; color: #93a5a1; }
.pricing__notes { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 15px; }
.pricing__notes li { display: flex; gap: 8px; align-items: center; }
.pricing__notes .i { color: var(--teal); }

/* FAQ */
.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 650; font-size: 18px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }

/* Final CTA */
.final { background: radial-gradient(800px 400px at 50% 0%, rgba(143, 211, 196, .25), transparent 70%), var(--teal-dark); color: #d6ebe6; text-align: center; }
.final__inner { display: flex; flex-direction: column; align-items: center; }
.final h2 { color: #fff; max-width: 22ch; }
.final p { margin: 16px 0 30px; font-size: 19px; max-width: 54ch; }
.final .hero__creds { margin: 16px 0 0; color: #a9d0c7; }

/* Footer */
.footer { background: var(--night); color: #8fa19d; padding: 32px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__inner p { margin-right: auto; }
.logo--small { font-size: 17px; }
.logo--small .logo__mark { width: 26px; height: 26px; font-size: 14px; }

/* Responsive */
@media (max-width: 1080px) {
  .pains__grid { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .calc { grid-column: 1 / -1; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .panel { grid-template-columns: 1fr; }
  .panel__shot { position: static; }
  .gallery__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .pains__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav .btn--sm { display: none; }
  .plans, .features__grid, .pains__grid, .trust__grid { grid-template-columns: 1fr; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; justify-content: center; padding: 10px 8px; }
  .tabs button .i { display: none; }
  .hero::after { height: 60px; }
  .footer__inner p { margin-right: 0; }
}
