/* LFM Sourcing: Kraft design system, shared by the homepage and every subpage.
   Big Shoulders Display for headlines, Public Sans for text. */

:root {
  --kraft: #C9A378;
  --kraft-dark: #A8814F;
  --label: #FBFAF5;
  --ink: #1C1A16;
  --stamp: #B8322A;
  --muted: #5E5444;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: "Public Sans", system-ui, sans-serif; background: var(--kraft); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }
/* Content width grows with the screen: 24px gutters on phones, up to 64px on big monitors, capped at 1760px */
.wrap { width: min(1760px, 100% - 2 * clamp(24px, 4vw, 64px)); margin-inline: auto; }
.display { font-family: "Big Shoulders Display", sans-serif; font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: .005em; }

/* faint corrugation texture */
.corr { background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 2px, transparent 2px 9px); }

/* Header: fixed to the top while scrolling, fully transparent (no bar, no border).
   Text is ink over kraft; js/kraft.js adds .on-dark over dark sections (video, ink, red, footer). */
header { position: fixed; inset: 0 0 auto; z-index: 50; background: transparent; border: 0; color: var(--ink); transition: color .2s ease, background-color .2s ease; }
/* Once scrolled: a borderless frosted tint so links stay readable over page content */
header.scrolled { background: rgba(201,163,120,.78); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); }
header.scrolled.on-dark { background: rgba(20,18,15,.55); }
header .wrap { display: flex; justify-content: space-between; align-items: center; height: 88px; }
header .btn { transition: background .25s ease, color .25s ease; }
header.on-dark { color: var(--label); }
header.on-dark .btn { background: var(--label); color: var(--ink); }
header.on-dark .btn:hover { background: var(--stamp); color: var(--label); }
/* Room for the fixed header on pages that don't open with the full-screen video */
body > main { padding-top: var(--header-h, 88px); }
body.has-hero > main { padding-top: 0; }
.logo { font-family: "Big Shoulders Display"; font-weight: 900; font-size: 30px; text-decoration: none; letter-spacing: .02em; }
nav { display: flex; gap: 28px; align-items: center; font-weight: 500; font-size: 15px; }
nav a { text-decoration: none; }
nav a.nav-account { display: inline-block; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--ink); color: var(--label); font: inherit; font-weight: 700; text-decoration: none; border: 0; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--stamp); }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--label); }

/* Homepage hero: full-screen doorstep video */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #0d0b08; color: var(--label); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,6,.72) 0%, rgba(10,8,6,.35) 38%, rgba(10,8,6,0) 62%), linear-gradient(0deg, rgba(10,8,6,.45), rgba(10,8,6,0) 30%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero-copy { max-width: 520px; }
.hero h1 { font-size: clamp(64px, 8.5vw, 136px); }
.hero p { margin-top: 22px; font-size: 19px; max-width: 30ch; line-height: 1.5; color: rgba(251,250,245,.82); }
.hero .ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero .btn { background: var(--label); color: var(--ink); }
.hero .btn:hover { background: var(--stamp); color: var(--label); }
.hero .btn-line { background: transparent; color: var(--label); border: 2px solid rgba(251,250,245,.7); }
.hero .btn-line:hover { background: var(--label); color: var(--ink); }

/* Subpage heading */
.page-head { padding: 64px 0 104px; }
.page-head h1 { font-size: clamp(64px, 10vw, 150px); max-width: 10ch; }
.page-head p { margin-top: 26px; font-size: 19px; line-height: 1.5; max-width: 38ch; color: var(--muted); }
/* Intro on a label card (About) */
.intro-card { margin-top: 32px; max-width: 760px; padding: clamp(24px, 3vw, 40px); }
.page-head .intro-card p { margin-top: 0; color: var(--ink); max-width: none; }
.page-head .form-split h1 { font-size: clamp(60px, 7.4vw, 116px); }
.page-head .form-split { align-items: center; }
/* Long application form: intro sticks beside it instead of floating mid-page */
.page-head .form-split.tall { align-items: start; }
.form-split.tall .intro { position: sticky; top: calc(var(--header-h, 88px) + 24px); }

/* Ink band of three (homepage promises, subpage audiences) */
.promise { background: var(--ink); color: var(--label); padding: 100px 0; }
.promise .section-title { color: var(--label); margin-bottom: 56px; }
.promise .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.promise h2, .promise h3 { font-size: clamp(48px, 6vw, 88px); color: var(--kraft); }
.promise h3 { font-size: clamp(40px, 4.6vw, 68px); }
.promise p { margin-top: 14px; color: #CFC6B6; line-height: 1.55; max-width: 26ch; }

/* Three label cards on kraft (About: how we work) */

/* Ink rule between stacked sections */
:root { --rule-gap: clamp(48px, 6vw, 80px); }
.section.ruled, .section + .section.ruled { padding-top: 0; padding-bottom: var(--rule-gap); }
.ruled > .wrap { border-top: 3px solid var(--ink); padding-top: var(--rule-gap); }
.page-head:has(+ .ruled), .page-head:has(+ .legal) { padding-bottom: var(--rule-gap); }
/* Long-form card pages (terms, privacy, accessibility) */
.section.legal { padding: 0 0 var(--rule-gap); }
.value-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.value-cards h3 { font-size: clamp(36px, 3.4vw, 52px); font-weight: 800; line-height: .95; }
.value-cards p { margin-top: 14px; line-height: 1.55; color: var(--muted); max-width: 34ch; }
.promise .step-n { display: block; font-size: 34px; color: var(--stamp); margin-bottom: 10px; letter-spacing: .04em; }
.switch { border: 0; margin-bottom: 24px; }
.switch legend { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.switch .opts { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.switch label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; font-weight: 700; cursor: pointer; text-align: center; }
.switch label + label { border-left: 2px solid var(--ink); }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch label:has(input:checked) { background: var(--ink); color: var(--label); }
.switch label:has(input:focus-visible) { outline: 3px solid var(--stamp); outline-offset: -5px; }
.form-note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.form-note a { font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted); }

/* Kraft section with a title */
.section { padding: 110px 0; }
.section + .section { padding-top: 24px; }
.section-title { font-size: clamp(44px, 5.6vw, 80px); margin-bottom: 48px; }

/* Grid of short points, each under a heavy rule */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.points > div { border-top: 3px solid var(--ink); padding: 22px 0 44px; }
.points h3 { font-family: "Big Shoulders Display"; font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
.points p { margin-top: 10px; line-height: 1.55; max-width: 38ch; color: var(--muted); }

/* Form styled as a shipping label */
.form-split { display: grid; grid-template-columns: 1fr minmax(0, 660px); gap: 64px; align-items: start; }
.form-split .intro p { margin-top: 18px; font-size: 18px; line-height: 1.55; max-width: 32ch; color: var(--muted); }
.form-split .intro a { font-weight: 700; }
.label-card { background: var(--label); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 10px 12px 0 rgba(28,26,22,.18); padding: 32px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 11px 12px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--stamp); outline-offset: 1px; }
.label-card .btn { margin-top: 24px; }
/* Long-form text (privacy, terms) on a label card */
.prose { max-width: 1180px; padding: clamp(24px, 4vw, 56px); font-size: 17px; line-height: 1.65;
  display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); }
/* Heading on the left, its text on the right; a rule between sections */
.prose h2 { grid-column: 1; font-family: "Big Shoulders Display"; font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1.05; padding: 28px clamp(24px, 4vw, 56px) 28px 0; }
.prose > :not(h2) { grid-column: 2; }
.prose h2 + * { padding-top: 28px; }
.prose > :last-child { padding-bottom: 0; }
.prose > :not(h2):not(:last-child) { padding-bottom: 28px; }
.prose h2:not(:first-child), .prose h2:not(:first-child) + * { border-top: 2px solid var(--ink); }
.prose h2:first-child { padding-top: 0; }
.prose h2:first-child + * { padding-top: 0; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose a { font-weight: 700; }
footer a[aria-current="page"] { color: var(--label); }

/* Section labels inside the long application form */
.page-head .fields .group, .page-head .fields > .hint { max-width: none; color: var(--ink); line-height: 1.2; }
.page-head .fields > .hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.fields .group { grid-column: 1 / -1; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink); font-family: "Big Shoulders Display"; font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.fields .group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fields .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--stamp); }
.field input::placeholder { color: #9A8E7A; }
.reqs { margin-top: 26px; padding: 18px 20px; border-left: 6px solid var(--ink); background: rgba(251,250,245,.35); max-width: 40ch; }
.reqs-title { margin: 0 !important; font-size: 13px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink) !important; }
.reqs ul { margin: 10px 0 0 18px; display: grid; gap: 6px; line-height: 1.45; }
.details { padding: 0; }
.details div { display: grid; grid-template-columns: 150px 1fr; border-bottom: 3px solid var(--ink); }
.details div:last-child { border-bottom: 0; }
.details dt { padding: 18px 16px; border-right: 3px solid var(--ink); font-size: 13px; font-weight: 700; }
.details dd { padding: 14px 18px; font-family: "Big Shoulders Display"; font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1.1; display: flex; align-items: center; }
.details dd a { font-family: "Public Sans"; font-size: 16px; font-weight: 700; text-transform: none; }
.form-error { margin-top: 18px; padding: 12px 14px; border-left: 6px solid var(--stamp); background: #F6E3DF; color: #7A1F18; font-weight: 600; line-height: 1.45; border-radius: 4px; }
.form-link { display: inline-block; margin-left: 18px; font-size: 14px; font-weight: 700; }
.btn[disabled] { opacity: .6; cursor: progress; }
.notice { background: var(--label); border: 3px solid var(--ink); border-left: 10px solid var(--stamp); border-radius: 6px; padding: 24px; line-height: 1.55; }

/* Closing call to action */
.cta { background: var(--stamp); color: var(--label); padding: 110px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(56px, 9vw, 140px); }
.cta .btn { background: var(--label); color: var(--ink); }
.cta .btn:hover { background: var(--ink); color: var(--label); }

footer { background: var(--ink); color: #A79D8C; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; padding: 26px 0; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; margin-left: 24px; }
footer a:hover { color: var(--label); }
footer .wrap > span:first-child a { margin: 0; white-space: nowrap; }

@media (max-width: 880px) {
  nav { gap: 10px; }
  nav a:not(.btn) { font-size: 13px; white-space: nowrap; }
  header .wrap { gap: 10px; }
  .logo { font-size: 20px; white-space: nowrap; }
  nav .btn { min-height: 42px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
  .promise .row, .value-cards, .points, .form-split, .fields { grid-template-columns: 1fr; }
  .form-split { gap: 36px; }
  .label-card { padding: 22px; }
  .form-split.tall .intro { position: static; }
  .details { padding: 0; }
  .details div { grid-template-columns: 104px minmax(0, 1fr); }
  .details dt { padding: 14px 12px; }
  .details dd { padding: 12px 14px; font-size: 20px; overflow-wrap: anywhere; }
  .details dd a { font-size: 14px; }
  .page-head { padding: 32px 0 72px; }
  .section { padding: 80px 0; }
  .hero { align-items: flex-end; }
  .hero-video { object-position: 68% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(10,8,6,.85) 0%, rgba(10,8,6,.45) 45%, rgba(10,8,6,.15) 100%); }
  .hero .wrap { padding: 120px 0 56px; }
  footer a { margin: 0 20px 0 0; }
  .prose { grid-template-columns: 1fr; font-size: 16px; }
  .prose h2, .prose > :not(h2) { grid-column: 1; }
  .prose h2 { font-size: 26px; padding: 24px 0 10px; }
  .prose h2:first-child { padding-top: 0; }
  .prose h2 + *, .prose h2:not(:first-child) + * { padding-top: 0; border-top: 0; }
}
/* Narrow phones: menu drops to a second row under the logo */
@media (max-width: 480px) {
  header .wrap { flex-wrap: wrap; height: auto; padding: 16px 0 12px; row-gap: 10px; }
  header nav { width: 100%; justify-content: flex-end; gap: 18px; }
  header nav .btn { margin-left: auto; }
  .logo { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
