/* Nexar Quote Desk landing page. Tokens, type and section patterns follow the Nexar Labs site
   (github.com/nexarlabs-ai/landing-page, app/styles/site.css): a dark opening, then a light page
   with fixed section colours, closing on a dark footer. Copper is the thread. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-display: swap; src: url("fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-display: swap; src: url("fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-display: swap; src: url("fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --night: #080605;
  --bone: #eee5da;
  --ash: #a09489;
  --line-dark: rgba(238, 229, 218, 0.14);
  --paper: #ffffff;
  --sheet: #f4f4f3;
  --ink: #171615;
  --muted: #5d5a56;
  --line: rgba(23, 22, 21, 0.11);
  --copper: #c97640;
  --copper-ink: #9a4e22;
  --copper-hi: #f4c491;
  --bar: #f8f2ea;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 80px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 24px; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, table, dl, dd, form, figure, ul, ol { margin: 0; padding: 0; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--copper); color: #fff; }
.wrap { width: calc(100% - 2 * var(--gutter)); max-width: 1680px; margin-inline: auto; }
.small { font-size: 14px; line-height: 1.45; }
.muted { color: var(--muted); }

/* Buttons and links (site.css) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0; transition: transform .2s, box-shadow .3s; }
.btn-copper { color: #1a0d05; background: linear-gradient(180deg, var(--copper-hi), var(--copper) 55%, #a85a2a);
  box-shadow: 0 0 0 1px rgba(244, 196, 145, .35) inset, 0 10px 34px -12px rgba(201, 118, 64, .75); }
.btn-copper:hover { transform: translateY(-1px); }
.btn-ghost { color: inherit; background: transparent; box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--copper) inset; }
.link-copper { color: var(--copper-ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-copper:hover { color: var(--copper); }

/* Dark opening */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--bone); border-bottom: 1px solid var(--copper); }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0;
  background: radial-gradient(38% 60% at 74% 48%, rgba(207, 124, 67, .26), transparent 72%), radial-gradient(30% 50% at 8% 112%, rgba(107, 47, 18, .28), transparent 70%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 74vw; height: 74vw; right: -20vw; top: -16vw; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 226, 196, .4); box-shadow: 0 0 40px rgba(207, 124, 67, .3), inset 0 0 40px rgba(207, 124, 67, .2); transform: rotate(-24deg) scaleY(.66); /* tells-ok: the copper light ring is the Nexar Labs site's own brand element (site.css .band::after) */ }
.grain { position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 18px; height: auto; }
.brand .product { font-weight: 400; color: var(--ash); padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line-dark); }
.site-header .btn { padding: 11px 18px; font-size: 14px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 96px); align-items: center;
  padding-block: clamp(40px, 7vh, 88px) clamp(56px, 9vh, 104px); }
.hero h1 { font: 400 clamp(42px, 4.4vw, 84px)/1 var(--serif); letter-spacing: -0.02em; max-width: 12ch; text-wrap: balance; }
.hero .lede { max-width: 42ch; color: var(--ash); font-size: clamp(17px, 1.3vw, 19px); margin-top: clamp(22px, 3.5vh, 34px); }
.hero .lede strong { color: var(--bone); font-weight: 500; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding: 16px 0 20px; font-size: 14px; color: var(--ash); }

/* The sample: listing paper with feed holes, lit on the dark stage */
.listing { position: relative; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 28px 54px 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px;
  box-shadow: 0 50px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(244, 196, 145, .18); }
.listing::before, .listing::after { content: ""; position: absolute; top: 0; bottom: 0; width: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='28'%3E%3Ccircle cx='16' cy='14' r='3.6' fill='%232b1e16'/%3E%3C/svg%3E") repeat-y center top; }
.listing::before { left: 0; border-right: 1px solid var(--line); }
.listing::after { right: 0; border-left: 1px solid var(--line); }
.docline { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.docline h3 { font: 600 18px/1.3 var(--sans); letter-spacing: -0.01em; }
.docline .small { white-space: nowrap; color: var(--muted); }
.cut { height: 0; border-top: 1px solid var(--line); margin-inline: -22px; }

table.lines { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
table.lines th { font-weight: 500; font-size: 13px; color: var(--muted); text-align: left; padding: 7px 9px; border-bottom: 1.5px solid var(--copper); vertical-align: bottom; }
table.lines td { padding: 8px 9px; vertical-align: top; }
table.lines tbody tr:nth-child(odd) td { background: var(--bar); }
table.lines .n { text-align: right; white-space: nowrap; }
table.lines th.n, table.lines .w1 { width: 1%; white-space: nowrap; }
table.lines .nw { white-space: nowrap; }
table.lines .ln { width: 1%; color: var(--muted); text-align: right; }
table.lines .note { display: block; font-size: 13px; color: var(--copper-ink); margin-top: 2px; }
table.lines tfoot td { font-weight: 600; border-top: 1.5px solid var(--ink); }
table.raw td { padding: 6px 9px; border-bottom: 1px solid var(--line); }
table.raw th { border-bottom-color: var(--line); border-bottom-width: 1px; }
table.raw tbody tr:nth-child(odd) td { background: none; }
.listing figcaption { font-size: 13px; color: var(--muted); }

/* Light sections (site.css) */
.sec { padding-block: clamp(80px, 11vh, 128px); }
.sec.sheet { background: var(--sheet); }
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(40px, 6vh, 64px); }
.h2 { font: 600 clamp(32px, 3.4vw, 52px)/1.06 var(--sans); letter-spacing: -0.03em; text-wrap: balance; max-width: 20ch; }
.h2::before { content: ""; display: block; width: 40px; height: 2px; background: var(--copper); margin-bottom: 22px; }
.sub { color: var(--muted); max-width: 52ch; }

/* The offer */
.plans { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.plan { position: relative; background: var(--sheet); border-radius: 24px; padding: clamp(28px, 3.4vw, 48px); box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; }
.formhead { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.formhead .doc { font: 600 clamp(24px, 2.1vw, 32px)/1.1 var(--sans); letter-spacing: -0.02em; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; font-size: 15px; }
.meta dt { color: var(--muted); }
.meta dd { font-weight: 500; }
table.offerlines { width: 100%; border-collapse: collapse; }
table.offerlines td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.offerlines tr:last-child td { border-bottom: 0; padding-bottom: 0; }
table.offerlines .ln { width: 44px; color: var(--muted); font-size: 15px; }
table.offerlines .what { font-weight: 500; font-size: 18px; line-height: 1.35; padding-right: 24px; }
table.offerlines .what span { display: block; font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 4px; }
table.offerlines .amt { text-align: right; white-space: nowrap; font: 600 clamp(20px, 1.7vw, 26px)/1.2 var(--sans); letter-spacing: -0.02em; color: var(--copper-ink); }
.plan.dark { background: var(--night); color: var(--bone); box-shadow: none; isolation: isolate; display: flex; flex-direction: column; }
.plan.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 90% 0%, rgba(207, 124, 67, .32), transparent 70%); }
.plan.dark h3 { font: 400 clamp(30px, 2.9vw, 46px)/1.06 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.plan.dark p { color: var(--ash); margin-top: 18px; max-width: 36ch; }
.plan.dark p strong { color: var(--bone); font-weight: 500; }
.plan.dark .btn { margin-top: auto; align-self: flex-start; }
.plan.dark .spacer { height: 32px; flex: none; }

/* A week with the desk: the site's Process pattern */
.steps { list-style: none; padding-top: 32px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, #6b2f12, var(--copper)); }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -37px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px var(--sheet); }
.step .when { font: 600 14px/1.2 var(--sans); color: var(--copper-ink); }
.step h3 { font: 600 clamp(19px, 1.5vw, 23px)/1.2 var(--sans); letter-spacing: -0.015em; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: 16px; }

/* Three files */
.files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.file { background: var(--sheet); border-radius: 24px; padding: clamp(26px, 2.6vw, 40px); box-shadow: 0 0 0 1px var(--line) inset; display: grid; gap: 10px; align-content: start; }
.file svg { width: 132px; height: 92px; margin-bottom: 18px; }
.file h3 { font: 600 clamp(20px, 1.5vw, 25px)/1.18 var(--sans); letter-spacing: -0.02em; }
.file p { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.about .h2 { margin-bottom: 20px; }
.about .sub + .sub { margin-top: 14px; }
.benefits { border-top: 1px solid var(--line); list-style: none; }
.benefit { padding: 24px 0; border-bottom: 1px solid var(--line); }
.benefit h3 { font: 600 19px/1.3 var(--sans); margin-bottom: 6px; }
.benefit p { color: var(--muted); }
.inception { margin-top: 32px; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; }
.inception .dot { width: 10px; height: 10px; border-radius: 50%; background: #76b900; flex: none; }
.inception p { color: var(--muted); font-size: 15px; }
.inception strong { color: var(--ink); font-weight: 600; }

/* Send */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.contact-grid .h2 { margin-bottom: 18px; }
.contact-form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 40px); background: var(--sheet); border-radius: 24px; box-shadow: 0 0 0 1px var(--line) inset; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; align-content: start; font-size: 14px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="email"], .field input[type="text"] { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.field input:focus { outline: none; border-color: var(--copper); }
.drop { display: block; background: var(--paper); border: 1px dashed rgba(23, 22, 21, .28); border-radius: 12px; padding: 16px; font-weight: 400; color: var(--muted); }
.drop input { font: 400 15px var(--sans); color: var(--muted); margin-top: 8px; max-width: 100%; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13px; color: var(--muted); }

/* Footer (dark closing frame) */
.footer { background: var(--night); color: var(--bone); padding-top: 56px; border-top: 1px solid var(--copper); }
.sign-off { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; }
.sign-off p { font: 600 clamp(20px, 1.8vw, 26px)/1.25 var(--sans); letter-spacing: -0.015em; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; list-style: none; }
.foot-links a { text-decoration: none; color: var(--ash); }
.foot-links a:hover { color: var(--bone); }
.legal { padding: 20px 0 28px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--ash); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

@media (min-width: 1101px) and (max-width: 1500px) {
  .hero-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; padding-block: 28px 56px; }
  .listing { padding: 22px 46px 20px; gap: 16px; }
  .listing::before, .listing::after { width: 28px; }
  table.lines { font-size: 14px; }
  table.lines td { padding: 6px 8px; }
}
@media (max-width: 1400px) { .files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .hero-grid, .head, .plans, .about, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 40px; }
  .head { align-items: start; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .steps::before { display: none; }
  .step { padding: 22px 0 22px 26px; border-top: 1px solid var(--line); }
  .step::before { top: 28px; left: 0; box-shadow: none; }
  .files { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand .product { display: none; }
  .listing { padding: 20px 38px; }
  .listing::before, .listing::after { width: 24px; }
  .scroll { overflow-x: auto; }
  .scroll table { min-width: 560px; }
  .formhead { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  table.offerlines .ln { display: none; }
  table.offerlines .what { font-size: 17px; }
}

/* Form states */
.form-note a { color: var(--ink); }
.form-status { padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--copper-ink); background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn[hidden], .form-status[hidden] { display: none; }
