@layer reset, tokens, base, layout, components, utilities;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, video { display: block; max-width: 100%; }
  input, button, select, textarea { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  fieldset { border: 0; min-width: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; }
  [hidden] { display: none !important; }
}
@layer tokens {
  :root {
    --navy: #0c112c;
    --navy-deep: #080f28;
    --navy-ink: color-mix(in oklab, var(--navy-deep) 70%, black);
    --teal: #2AAEC0;
    --teal-dark: #1d8fa0;
    --teal-light: #5ecfdc;
    --white: #ffffff;
    --slate: #4a5568;
    --slate-light: #8494a8;
    --red: #b42318;

    --font-primary: 'Google Sans', Arial, sans-serif;
    --font-body: 'Roboto', Arial, sans-serif;
    --weight-primary: 400;
    --weight-button: 500;

    --text-label: 0.8125rem;
    --text-button: 1rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lead: clamp(1.0625rem, 1.35vw, 1.3125rem);
    --text-h6: var(--text-label);
    --text-h5: 1.25rem;
    --text-h4: clamp(1.5rem, 2vw, 2rem);
    --text-h3: clamp(2.25rem, 4.5vw, 4rem);
    --text-h2: clamp(1.75rem, 3vw, 2.625rem);
    --text-h1: clamp(2.75rem, 5vw, 4.5rem);
    --text-figure: clamp(2rem, 3.6vw, 3.75rem);

    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: clamp(1.25rem, 2vw, 1.75rem);
    --space-l: clamp(2rem, 3.6vw, 3.25rem);
    --space-xl: clamp(3rem, 6vw, 5.5rem);
    --space-section: clamp(5.5rem, 10vw, 8.75rem);

    --overlay: color-mix(in srgb, var(--navy-deep) 45%, transparent);
    --shadow-card: 0 30px 70px -40px color-mix(in srgb, var(--navy-deep) 40%, transparent), 0 2px 6px color-mix(in srgb, var(--navy-deep) 4%, transparent);
    --overlay-strong: linear-gradient(135deg, rgb(8 15 40 / 0.95) 0%, rgb(8 47 82 / 0.87) 45%, rgb(13 67 115 / 0.66) 100%);
    --radius: .7em;
    --header-h: 88px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-button: cubic-bezier(0.25, 1, 0.5, 1);
    --dur: 0.2s;
  }
  /* Phones and tablets: a lighter header (the logo drops to 48px) */
  @media (max-width: 860px) { :root { --header-h: 68px; } }
  /* Phones: tighter space between sections */
  @media (max-width: 560px) { :root { --space-section: 4rem; } }

  :root, [data-theme="light"] {
    --weight-body: 300;
    --color-bg: var(--white);
    --color-fg: var(--navy);
    --color-muted: var(--slate);
    --color-subtle: var(--slate-light);
    --color-accent: var(--teal);
    --color-accent-strong: var(--teal-dark);
    --color-accent-text: var(--teal);
    --color-rule: color-mix(in oklab, var(--navy) 30%, var(--white));
    --color-line: color-mix(in oklab, var(--navy) 36%, var(--white));
    --color-track: color-mix(in oklab, var(--navy) 16%, var(--white));
    --color-field: color-mix(in oklab, var(--navy) 3%, var(--white));
    --color-danger: var(--red);
  }

  [data-theme="dark"] {
    --color-bg: var(--navy);
    --color-fg: var(--white);
    --color-muted: color-mix(in oklab, var(--white) 82%, transparent);
    --color-subtle: color-mix(in oklab, var(--white) 66%, transparent);
    --color-accent-text: var(--teal-light);
    --color-rule: color-mix(in oklab, var(--white) 18%, transparent);
    --color-line: color-mix(in oklab, var(--white) 32%, transparent);
    --color-track: color-mix(in oklab, var(--white) 18%, transparent);
    --color-field: color-mix(in oklab, var(--white) 6%, transparent);
  }
}
@layer base {
  html[data-measuring] { scroll-behavior: auto; }
  html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--navy-deep); }
  body { font: var(--weight-body) var(--text-base)/1.6 var(--font-body); color: var(--color-fg); background: var(--color-bg); overflow-x: clip; }
  [data-theme] { color: var(--color-fg); font-weight: var(--weight-body); }

  /* .title: a label set in the h4 style (form step titles, the portrait name), so it never breaks the heading outline */
  h1, h2, h3, h4, h5, h6, .display, .figure, .title { font-family: var(--font-primary); font-weight: var(--weight-primary); color: inherit; letter-spacing: -0.01em; line-height: 1; }
  h1 { font-size: var(--text-h1); }
  h2 { font-size: var(--text-h2); color: var(--color-accent-text); }
  h3 { font-size: var(--text-h3); }
  h4, .title { display: block; font-size: var(--text-h4); }
  h5 { font-size: var(--text-h5); }
  h6 { font-size: var(--text-label); }
  h1, h2, h3, h4, h5, .title { text-wrap: balance; }
  em, i { font-style: normal; }
  h1 em, h3 em, .display em { color: var(--color-accent-text); }

  .eyebrow, .link { font-family: var(--font-primary); font-weight: var(--weight-primary); font-size: var(--text-label); line-height: 1.4; }

  .display { font-size: var(--text-h1); }
  .figure { font-size: min(var(--text-figure), 18cqi); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
  .figure small { margin-left: 2px; font-size: 0.45em; color: var(--color-accent-text); }

  p { text-wrap: pretty; color: var(--color-muted); }
  ul:not([role]) { padding-inline-start: 1.25em; color: var(--color-muted); }
  ul:not([role]) > li + li { margin-top: 0.5em; }
  a { color: inherit; text-decoration: none; }
  dd { margin: 0; }
  output { font-weight: var(--weight-button); color: var(--color-fg); font-variant-numeric: tabular-nums; }
  legend { margin-bottom: var(--space-xs); }
  ::selection { background: var(--teal); color: var(--white); }
  :focus-visible { outline: 2px solid var(--color-accent-text); outline-offset: 3px; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }
}
@layer layout {
  .container { width: 85%; margin-inline: auto; }
  .section { padding-block: var(--space-section); }
  .section[id] { scroll-margin-top: calc(var(--space-l) - var(--space-section)); }
  [id="apply"] { scroll-margin-top: var(--space-l); }
  .section[data-fill] { scroll-margin-top: calc(-1 * var(--header-h)); display: grid; align-items: center; min-height: 100svh; padding-block: calc(var(--header-h) + var(--space-l)) var(--space-l); }

  .flow > * + * { margin-block-start: 0.5em; }
  .stack { display: grid; align-content: start; gap: var(--space-xs); }
  .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); }
  .cluster[data-align="start"] { align-items: flex-start; }
  .cluster[data-justify="between"] { justify-content: space-between; }
  .cluster[data-justify="center"] { justify-content: center; }
  .cluster[data-justify="end"] { justify-content: flex-end; }
  .cluster[data-fit] { container-type: inline-size; }
  @container (max-width: 25.5rem) { .cluster[data-fit] > * { flex: 1 1 100%; } }
  .center { text-align: center; justify-items: center; align-items: center; }

  .split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
  .split > * { min-width: 0; }
  .split[data-align="start"] { align-items: start; }
  .split[data-align="stretch"] { align-items: stretch; }
  /* A narrow column beside a wide one (page contents beside the text); one column on phones like every split */
  @media (min-width: 861px) { .split[data-cols="1-2"] { grid-template-columns: 1fr 2fr; } }

  .grid { --cols: 2; --cols-md: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--space-s); }
  .grid[data-cols="3"] { --cols: 3; --cols-md: 1; }
  .grid[data-cols="5"] { --cols: 5; --cols-md: 2; }
  .grid[data-cols="city"] { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
  /* A form's answer pairs sit side by side only while both labels fit; data-cols="2" marks pairs short enough to always. */
  form[data-js~="form"] { container-type: inline-size; }
  @container (max-width: 27.5rem) { .grid[data-space="s"]:not([data-cols]) { grid-template-columns: minmax(0, 1fr); } }
  .grid[data-align="center"] { align-items: center; }
  .grid[data-lines] { gap: 0; overflow: hidden; }
  .grid[data-lines] > * { container-type: inline-size; padding: var(--space-m) var(--space-m) var(--space-l); box-shadow: 1px 0 0 var(--color-rule), 0 1px 0 var(--color-rule); }
  .grid[data-fill-last] > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  [data-space="2xs"] { gap: var(--space-2xs); }
  .flow[data-space="2xs"] > * + * { margin-block-start: var(--space-2xs); }
  [data-space="xs"] { gap: var(--space-xs); }
  .flow[data-space="xs"] > * + * { margin-block-start: var(--space-xs); }
  [data-space="s"] { gap: var(--space-s); }
  .flow[data-space="s"] > * + * { margin-block-start: var(--space-s); }
  [data-space="m"] { gap: var(--space-m); }
  .flow[data-space="m"] > * + * { margin-block-start: var(--space-m); }
  [data-space="l"] { gap: var(--space-l); }
  .flow[data-space="l"] > * + * { margin-block-start: var(--space-l); }
  [data-space="xl"] { gap: var(--space-xl); }
  .flow[data-space="xl"] > * + * { margin-block-start: var(--space-xl); }

  @media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split[data-order="reverse"] > :first-child { order: 1; }
    .grid { grid-template-columns: repeat(var(--cols-md), minmax(0, 1fr)); }
    .cluster[data-justify="end"], .cluster[data-justify="center"] { justify-content: flex-start; }
  }
  @media (max-width: 560px) {
    .grid { grid-template-columns: minmax(0, 1fr); }
    .grid[data-cols="city"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .grid[data-cols="city"] > :first-child { grid-column: 1 / -1; }
    /* Phones: the five-column deal grid becomes a swipe row, one deal per card with the next one peeking in */
    .grid[data-cols="5"] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .grid[data-cols="5"]::-webkit-scrollbar { display: none; }
    .grid[data-cols="5"] > * { scroll-snap-align: start; }
  }
}
@layer components {
  .btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; font: var(--weight-button) var(--text-button)/1 var(--font-primary); white-space: nowrap; text-box: trim-both cap alphabetic; border: 1px solid var(--teal); border-radius: var(--radius); background: var(--teal); color: var(--white); text-align: center; cursor: pointer; transition: background-color 0.3s var(--ease-button), border-color 0.3s var(--ease-button), color 0.3s var(--ease-button), transform 0.1s var(--ease-out); }
  .btn-primary[data-size="full"], .btn-ghost[data-size="full"] { flex: 1; width: 100%; }
  .btn-arrow { flex: none; width: 5px; height: 8px; margin-left: 8px; overflow: visible; }
  .btn-arrow g { transition: transform 0.3s var(--ease-button); }
  .btn-arrow rect { opacity: 0; transition: opacity 0.3s var(--ease-button); }
  .btn-primary:is(:hover, :focus-visible) .btn-arrow g { transform: translateX(6px); }
  .btn-primary:is(:hover, :focus-visible) .btn-arrow rect { opacity: 1; }
  .btn-primary:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
  .btn-ghost { border-color: currentColor; background: transparent; color: var(--color-fg); }
  .btn-ghost:hover { border-color: var(--teal); background: var(--teal); color: var(--white); }
  .btn-primary:active, .btn-ghost:active { transform: scale(0.97); }
  .btn-primary[aria-busy="true"] { opacity: 0.7; cursor: progress; }

  .link { display: inline-flex; align-items: center; gap: 0.6em; color: inherit; white-space: nowrap; transition: color var(--dur) ease; }
  .link[data-size="m"] { font-size: var(--text-h5); letter-spacing: -0.01em; white-space: normal; overflow-wrap: anywhere; }
  .link[data-size="l"] { font-size: var(--text-h4); letter-spacing: -0.01em; }
  .link:hover { color: var(--color-accent-text); }
  .link:hover .icon { transform: translate(2px, -2px); }

  .icon { width: var(--icon, 1em); height: var(--icon, 1em); flex: none; transition: transform 0.3s var(--ease-out); }
  .icon[data-size="l"] { --icon: 52px; }
  .logo { display: block; height: 64px; width: auto; }
  @media (max-width: 860px) { .logo { height: 48px; } }

  .site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: var(--color-bg); }
  .site-header > .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; }
  .site-header > .container > :last-child { justify-self: end; }
  .brand { display: inline-flex; justify-self: center; }
  /* Menu (1050px and under, where the four nav links stop clearing the logo by the 32px between links): the menu button where the links were, the logo stays centred, the button
     goes into the menu under 560px. The menu is white, pinned to the screen edges under the header (never sized by
     height, FFO rule), and the page is locked while it is open. Rows and button from Orchid's phone menu (measured). */
  .menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-inline-start: -10px; border: 0; border-radius: 8px; background: none; color: var(--color-fg); cursor: pointer; }
  .menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out); }
  .menu-toggle span:first-child { top: 17px; }
  .menu-toggle span:last-child { top: 25px; }
  .menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
  .menu { position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 99; overflow-y: auto; overscroll-behavior: contain; padding-block: var(--space-s) var(--space-l); background: var(--color-bg); border-top: 1px solid var(--color-track); opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.25s var(--ease-out); }
  .menu[data-open] { opacity: 1; transform: none; }
  .menu-list { display: grid; margin-inline: -12px; }
  .menu-link { display: flex; align-items: center; min-height: 52px; padding: 0 12px; font: var(--weight-primary) var(--text-h5)/1.2 var(--font-primary); color: var(--color-fg); transition: color var(--dur) ease; }
  .menu-link:hover, .menu-link:focus-visible { color: var(--color-accent-strong); }
  html[data-menu] body { position: fixed; inset-inline: 0; overflow: hidden; }
  @media (max-width: 1050px) { .menu-toggle { display: block; } }
  @media (max-width: 560px) { .site-header > .container > .btn-primary { display: none; } }
  /* Phones: dark panels keep more room for their content */
  @media (max-width: 560px) { .panel, .panel[data-size="s"] { padding: var(--space-l) var(--space-m); } }
  /* Footer contact: full-height tap targets */
  .plan .link { min-height: 44px; }
  @media (min-width: 1051px) { .menu { display: none; } }
  /* Nav links hover by colour only, no pill (Stripe measured Nov 12 2026: 12px 0 padding, links spaced by the gap, no background) */
  .nav { display: flex; gap: 32px; }
  .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; border: 0; background: none; font: var(--weight-button) var(--text-button)/1 var(--font-primary); color: color-mix(in oklab, var(--color-fg) 80%, transparent); cursor: pointer; transition: color var(--dur) ease; }
  .nav-link:hover, .nav-link:focus-visible, [data-open] > .nav-link { color: var(--color-fg); }
  .nav-link > .icon { --icon: 14px; }
  [data-open] > .nav-link > .icon { transform: rotate(180deg); }
  /* Dropdown: Stripe's Products panel (white, attached under the bar, 0 0 6px 6px corners, its shadow; accent title over a muted 300 line, arrow on hover) */
  .nav-drop { position: absolute; text-align: left; top: 100%; left: 0; right: 0; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0s linear 0.25s; }
  [data-open] > .nav-drop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-drop-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-m); padding: var(--space-l); background: var(--color-bg); border-radius: 0 0 6px 6px; box-shadow: 0 18px 36px -18px rgb(0 0 0 / 0.1), 0 30px 45px -30px rgb(50 50 93 / 0.25); }
  .nav-drop-link { display: grid; gap: 4px; }
  .nav-drop-title { display: block; font: var(--weight-button) var(--text-base)/1.3 var(--font-primary); color: var(--color-accent-strong); }
  .nav-drop-desc { font: var(--weight-body) var(--text-sm)/1.4 var(--font-body); color: var(--color-muted); }
  .nav-drop-link:is(:hover, :focus-visible) .btn-arrow g { transform: translateX(6px); }
  .nav-drop-link:is(:hover, :focus-visible) .btn-arrow rect { opacity: 1; }
  .nav-drop-link:is(:hover, :focus-visible) .nav-drop-title { color: var(--color-fg); }
  .nav-drop-title > .btn-arrow { display: inline-block; vertical-align: 0.05em; }
  @media (max-width: 1050px) { .nav { display: none; } }

  /* Footer: the call to action centred on the site navy, then the footer band a shade darker; Call | Email | Office in three columns spread across the full width. */
  .plan-band { padding-block: var(--space-section); background: var(--color-bg); }
  .plan-band[data-tone="deep"] { padding-block: var(--space-l); background: var(--navy-ink); }
  .plan { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: var(--space-m) var(--space-l); }
  .plan > * { min-width: 0; }
  @media (max-width: 760px) { .plan { grid-template-columns: minmax(0, 1fr); } }

  .cover { position: relative; isolation: isolate; overflow: clip; background: var(--navy-deep); }
  .cover-media { position: absolute; inset: -15% 0; z-index: -1; }
  .cover-media img { width: 100%; height: 100%; object-fit: cover; }
  .cover-media::after { content: ''; position: absolute; inset: 0; background: var(--overlay); }
  .cover[data-overlay="strong"] .cover-media::after { background: var(--overlay-strong); }
  /* Service pages: the hero cover at content height (no form), cleared of the fixed header */
  .cover[data-page-top] { padding-block: calc(var(--header-h) + var(--space-xl)) var(--space-xl); }

  .panel { display: grid; align-content: center; padding: clamp(4rem, 7.5vw, 7rem) clamp(2rem, 7vw, 8rem); border-radius: var(--radius); background: var(--color-bg); }
  .panel[data-sticky] { position: sticky; top: calc(var(--header-h) + var(--space-l)); align-content: start; max-height: calc(100svh - var(--header-h) - 2 * var(--space-l)); overflow-y: auto; scrollbar-width: thin; }
  /* Short screens: tighten the panel so it fits while it sticks; below 680px tall it scrolls with the page */
  @media (max-height: 800px) { .panel[data-sticky] { padding-block: var(--space-m); } .panel[data-sticky] .step-list li { padding-bottom: var(--space-2xs); } }
  @media (max-width: 860px), (max-height: 680px) { .panel[data-sticky] { position: static; max-height: none; } }
  /* Interior application band (Rocco Nov 12 2026): the closing band's navy behind it, the guide panel in the brand teal
     (teal-dark: white small text on the lighter teal is under 3:1), its heading and active step white on the teal */
  [data-band="apply"] { background: var(--color-bg); }
  [data-band="apply"] .panel { --color-bg: var(--teal-dark); --color-accent: var(--white); --color-accent-text: var(--white); --color-accent-strong: var(--white); --color-muted: color-mix(in oklab, var(--white) 88%, transparent); --color-subtle: color-mix(in oklab, var(--white) 72%, transparent); --color-track: color-mix(in oklab, var(--white) 40%, transparent); --color-rule: color-mix(in oklab, var(--white) 35%, transparent); }
  .panel[data-size="s"] { padding: clamp(4rem, 4.5vw, 4rem) clamp(2rem, 4vw, 4rem); }
  /* Phones and small tablets, loan pages (Mercury and Ramp phone applications, measured live at 390): the panel becomes a navy band
     edge to edge under the header with the loan and one line; the form's progress bar and step titles carry the steps, and the form
     sits on the page with no card, so the first field is on the first screen */
  @media (max-width: 860px) {
    .panel[data-sticky] { margin: calc(-1 * var(--space-l)) -7.5vw 0; padding: var(--space-l) 7.5vw; border-radius: 0; }
    .panel[data-sticky] .step-list { display: none; }
    .section[data-fill] .surface[data-flush] { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
    [data-band="apply"] { scroll-margin-top: 0; }
    [data-band="apply"] .split { gap: var(--space-l); }
    [data-band="apply"] .panel[data-sticky] { margin-top: calc(-1 * var(--space-section)); }
    .section[data-fill]:has(.panel[data-sticky]) { align-items: start; }
  }
  /* Wider screens: the guided step list beside the form shows the steps, so the loan form drops its own progress bar */
  @media (min-width: 861px) { .surface[data-flush] .progress { display: none; } }
  /* Recently funded on phones: the panel runs edge to edge and the deals step left one at a time (timing from Baymard carousel research) */
  .marquee { min-width: 0; }
  @media (max-width: 560px) {
    .panel[data-bleed] { width: 100%; border-radius: 0; padding-inline: 7.5vw; }
    .panel[data-bleed] .marquee { margin-inline: -7.5vw; overflow: hidden; }
    .panel[data-bleed] .marquee > .grid { padding-inline: 7.5vw; scroll-padding-inline: 7.5vw; }
    .marquee[data-on] > .grid { display: flex; width: max-content; overflow: visible; scroll-snap-type: none; }
    .marquee[data-on] > .grid > * { flex: 0 0 16rem; box-shadow: 1px 0 0 var(--color-rule); }
  }
  .surface { padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--color-rule); border-radius: var(--radius); background: var(--color-bg); box-shadow: var(--shadow-card); }
  .surface:has([data-done]:not([hidden])) { display: grid; align-content: center; }

  .row-link { position: relative; display: block; padding: 4em 4.5rem 4em 0; border-top: 1px solid var(--color-rule); transition: color 0.3s ease; }
  .row-link > .icon { --icon: clamp(1.5rem, 3.1vw, 2.5rem); position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
  .row-link:hover, .row-link:focus-visible { color: color-mix(in oklab, var(--color-fg) 55%, var(--color-bg)); }
  .row-link:hover > .icon { transform: translate(3px, calc(-50% - 3px)); }
  /* Phones: the row uses its full width (features in a 2x2 grid) and the arrow sits after the features */
  @media (max-width: 560px) { .row-link { padding-right: 0; padding-bottom: var(--space-l); } .row-link > .icon { position: static; display: block; margin-block-start: var(--space-l); transform: none; } .row-link:hover > .icon { transform: translate(3px, -3px); } }

  .specs { display: grid; grid-template-columns: repeat(4, minmax(0, 13rem)); gap: var(--space-s); }
  .flow > .specs { margin-block-start: var(--space-m); }
  .specs li { display: grid; gap: 8px; align-content: start; padding-left: var(--space-xs); border-left: 1px solid var(--color-accent); }
  .specs strong { font: var(--weight-primary) clamp(1.75rem, 2.6vw, 2.25rem)/1 var(--font-primary); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; color: var(--color-fg); white-space: nowrap; }
  .specs span { font: var(--weight-primary) var(--text-label)/1.35 var(--font-primary); color: var(--color-muted); }
  @media (max-width: 560px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-m); } }


  .field { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto 48px; row-gap: 6px; cursor: text; }
  .field::before { content: ''; grid-column: 1 / -1; grid-row: 2; border: 1px solid var(--color-track); border-radius: var(--radius); background: var(--color-field); transition: border-color var(--dur) ease, background-color var(--dur) ease, box-shadow var(--dur) ease; }
  .field:hover::before { border-color: var(--color-rule); }
  .field:focus-within::before { border-color: var(--color-accent); background: var(--color-bg); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 18%, transparent); }
  .field-label { font: var(--weight-button) var(--text-label)/16px var(--font-primary); color: var(--color-fg); }
  .field > .field-label { grid-column: 1 / -1; grid-row: 1; }
  legend.field-label { margin-bottom: 6px; }
  .field-affix, .field input, .field select, .field textarea { position: relative; grid-row: 2; align-self: center; font: var(--weight-primary) var(--text-base)/28px var(--font-primary); color: var(--color-fg); }
  .field-affix { grid-column: 1; padding-left: 16px; }
  .field input + .field-affix { grid-column: 3; padding: 0 16px 0 4px; }
  .field input, .field select { grid-column: 2; width: 100%; min-width: 0; height: 48px; padding: 0 16px; border: 0; outline: 0; background: none; font-variant-numeric: tabular-nums; }
  .field-affix + input { padding-left: 4px; }
  .field input:has(+ .field-affix) { padding-right: 4px; }
  .field select { grid-column: 1 / -1; padding-right: 44px; appearance: none; cursor: pointer; }
  .field select:invalid { color: var(--color-subtle); }
  .field > .icon { position: absolute; right: 16px; bottom: 16px; color: var(--color-muted); pointer-events: none; }

  .choice { display: flex; align-items: center; gap: var(--space-xs); min-height: 52px; padding: 14px 16px; border: 1px solid var(--color-track); border-radius: var(--radius); background: var(--color-field); font: var(--weight-primary) var(--text-sm)/1.35 var(--font-primary); color: var(--color-fg); cursor: pointer; transition: border-color var(--dur) ease, background-color var(--dur) ease, box-shadow var(--dur) ease; }
  .choice:hover { border-color: var(--color-rule); }
  .choice:has(input:checked) { border-color: var(--color-accent); background: color-mix(in oklab, var(--color-accent) 7%, var(--color-bg)); box-shadow: inset 0 0 0 1px var(--color-accent); }
  .choice:has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--color-accent), 0 0 0 3px color-mix(in oklab, var(--color-accent) 18%, transparent); }
  .choice input { flex: none; display: grid; place-content: center; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--color-line); border-radius: 9999px; background: var(--color-bg); appearance: none; outline: 0; cursor: pointer; transition: border-color var(--dur) ease, background-color var(--dur) ease; }
  .choice input::before { content: ''; width: 8px; height: 8px; border-radius: inherit; background: var(--color-accent); transform: scale(0); transition: transform 0.2s var(--ease-out); }
  .choice input:checked { border-color: var(--color-accent); }
  .choice input:checked::before { transform: scale(1); }
  .choice input[type="checkbox"] { border-radius: 5px; }
  .choice input[type="checkbox"]::before { width: 10px; height: 10px; border-radius: 0; background: var(--white); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
  .choice input[type="checkbox"]:checked { background: var(--color-accent); }
  .choice small { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--color-muted); }

  .field[data-kind="area"] { grid-template-rows: auto minmax(112px, auto); }
  .field textarea { grid-column: 1 / -1; grid-row: 2; align-self: stretch; width: 100%; min-height: 112px; padding: 12px 16px; border: 0; outline: 0; background: none; line-height: 1.5; resize: vertical; }
  [data-field] > .fine { margin-top: 6px; }

  .drop { display: grid; justify-items: center; gap: 4px; padding: var(--space-m) var(--space-s); border: 1px dashed var(--color-rule); border-radius: var(--radius); background: var(--color-field); text-align: center; cursor: pointer; transition: border-color var(--dur) ease, background-color var(--dur) ease, box-shadow var(--dur) ease; }
  .field-label + .drop { margin-top: 6px; }
  .drop:hover, .drop[data-drag] { border-color: var(--color-accent); }
  .drop[data-drag] { background: color-mix(in oklab, var(--color-accent) 7%, var(--color-bg)); }
  .drop:has(input:focus-visible) { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 18%, transparent); }
  .drop span { font: var(--weight-button) var(--text-sm)/1.3 var(--font-primary); color: var(--color-accent-text); }
  .drop small { font: var(--weight-primary) var(--text-label)/1.4 var(--font-primary); color: var(--color-muted); }
  .file-list { display: grid; gap: 6px; margin-top: 6px; }
  .file-list:empty { display: none; }
  .file-list > li { display: flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 6px 6px 6px 14px; border: 1px solid var(--color-track); border-radius: var(--radius); background: var(--color-field); font: var(--weight-primary) var(--text-sm)/1.3 var(--font-primary); }
  .file-list li > span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .file-list li > small { flex: none; font-size: var(--text-label); color: var(--color-muted); font-variant-numeric: tabular-nums; }
  .file-list li[data-state="error"] { border-color: var(--color-danger); }
  .file-list li[data-state="error"] > small { flex: 0 1 auto; color: var(--color-danger); }
  .file-list button { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: var(--radius); background: none; color: var(--color-muted); cursor: pointer; transition: color var(--dur) ease, background-color var(--dur) ease; }
  .file-list button:hover { color: var(--color-fg); background: var(--color-track); }

  [data-invalid] > .field::before, [data-invalid] .choice { border-color: var(--color-danger); box-shadow: inset 0 0 0 1px var(--color-danger); }
  .error { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: var(--weight-primary) var(--text-label)/1.4 var(--font-primary); color: var(--color-danger); }
  .error::before { content: '!'; display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 9999px; background: var(--color-danger); color: var(--white); font-size: 11px; }

  .range { display: block; width: 100%; height: 5px; margin-top: var(--space-s); border-radius: 9999px; appearance: none; cursor: pointer; background: linear-gradient(to right, var(--color-accent) var(--fill, 0%), var(--color-track) var(--fill, 0%)); }
  .range:focus { outline: none; }
  .range:focus-visible { outline: 2px solid var(--color-accent-text); outline-offset: 6px; }
  .range::-webkit-slider-thumb { width: 18px; height: 18px; border-radius: 9999px; appearance: none; background: var(--color-accent); }
  .range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 9999px; background: var(--color-accent); }

  .ticks { display: flex; justify-content: space-between; margin-top: var(--space-xs); font: var(--weight-primary) var(--text-label)/1 var(--font-primary); color: var(--color-muted); font-variant-numeric: tabular-nums; }

  /* Guided steps: a dot on a thin rail, the step name, and for the current step one line on what it asks for */
  .step-list { display: grid; }
  .step-list li { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: var(--space-s); row-gap: 6px; padding-bottom: var(--space-s); color: var(--color-subtle); transition: color var(--dur) ease; }
  .step-list li:last-child { padding-bottom: 0; }
  .step-list li::before { content: ''; grid-row: 1; align-self: center; width: 8px; height: 8px; border-radius: 9999px; background: var(--color-track); transition: background-color 0.25s var(--ease-out); }
  .step-list li:not(:last-child)::after { content: ''; position: absolute; top: calc(0.6em + 8px); bottom: 2px; left: 3.5px; width: 1px; background: var(--color-rule); }
  .step-list strong { grid-column: 2; font: var(--weight-button) var(--text-button)/1.2 var(--font-primary); }
  .step-list li > span { display: none; grid-column: 2; font-size: var(--text-label); line-height: 1.5; color: var(--color-muted); }
  .step-list li[data-state="on"] > span { display: block; }
  .step-list li[data-state="on"] { color: var(--color-fg); }
  .step-list li[data-state="on"]::before { background: var(--color-accent-text); }
  .step-list li[data-state="done"] { color: var(--color-muted); }
  .step-list li[data-state="done"]::before { background: var(--color-fg); }
  /* Page contents (privacy policy): the step list as links, in view while the text scrolls; a part lands --space-l under the header */
  [data-toc] { position: sticky; top: calc(var(--header-h) + var(--space-l)); }
  [data-toc] a { transition: color var(--dur) ease; }
  [data-toc] a:hover { color: var(--color-fg); }
  [data-part] { scroll-margin-top: var(--space-l); }
  @media (max-width: 860px) { [data-toc] { display: none; } }

  .progress { display: flex; gap: 4px; }
  .progress [data-dot] { flex: 1; height: 3px; border-radius: 9999px; background: var(--color-track); transition: background-color 0.3s var(--ease-out); }
  .progress [data-dot][data-state] { background: var(--color-accent); }



  .frame { display: grid; gap: var(--space-s); justify-self: center; width: clamp(280px, 32vw, 480px); }
  .frame > div { overflow: hidden; border-radius: var(--radius); }
  .frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

  [data-form-step]:not([hidden]), [data-done]:not([hidden]) { animation: step-in 0.35s var(--ease-out); }
  @keyframes step-in { from { opacity: 0; transform: translateY(6px); } }

  .flight { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; }
  .flight svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .flight [data-path] { fill: none; stroke: none; }
  .flight [data-trail] { fill: none; stroke: var(--color-rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
  .flight [data-reveal] { fill: none; stroke: var(--white); stroke-width: 14; }
  .flight [data-plane-wrap] { position: absolute; inset: 0; opacity: 0.25; }
  .flight [data-plane] { position: absolute; inset: 0 auto auto 0; width: clamp(240px, 23.3vw, 336px); height: auto; aspect-ratio: 336 / 166; }
  .flight-steps { position: relative; margin-top: var(--space-l); }
  .flight-steps > [data-step] + [data-step] { margin-top: var(--space-xl); }
  [data-pinned] { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden; scroll-margin-top: 0; }
  [data-pinned] > .container { display: flex; flex-direction: column; justify-content: center; height: 100%; }
  [data-pinned] .flight-steps { margin-top: var(--space-s); }
  [data-pinned] .flight-steps > [data-step] { position: absolute; inset: 0 auto auto 0; width: 100%; margin: 0; opacity: 0; }
  /* Phones: the steps hang off a rail; a teal line draws down it on scroll and lights each dot as it gets there (scroll beam: Aceternity timeline; lit stops: delivery trackers) */
  .trace { display: none; }
  @media (max-width: 860px) {
    .flight-steps { padding-left: 2.5rem; }
    .flight-steps > [data-step] { position: relative; }
    .flight-steps > [data-step]::before { content: ''; position: absolute; top: calc(var(--text-h3) / 2 - 6px); left: -2.5rem; width: 12px; height: 12px; border-radius: 9999px; background: var(--color-accent-text); outline: 6px solid var(--color-bg); transition: background-color 0.3s var(--ease-out), transform 0.5s var(--ease-out); }
    .trace { display: block; position: absolute; top: calc(var(--text-h3) / 2); bottom: 0; left: 5px; width: 2px; border-radius: 9999px; background: var(--color-track); overflow: hidden; }
    .trace > span { display: block; height: 100%; background: var(--color-accent-text); transform-origin: top; }
  }
  @media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
    .js .flight-steps > [data-step] { transition: opacity 0.5s var(--ease-out); }
    .js .flight-steps > [data-step]:not([data-state]) { opacity: 0.35; }
    .js .flight-steps > [data-step]:not([data-state])::before { background: var(--color-line); transform: scale(0.75); }
    .js .trace > span { transform: scaleY(0); }
  }

  .js [data-js~="rise"] { opacity: 0; transform: translateY(20px); }

  @media (max-width: 860px) {
    .flight { display: none; }
    .frame { width: min(76vw, 360px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .js [data-js~="rise"] { opacity: 1; transform: none; }
  }

  /* Loan page search sections (views loanseo, Nov 12 2026) */
  /* Terms tiles (service page hero, under the subhead; Rocco Nov 12 2026: no glass, the site's thin dividers, as between the funded columns): Craft's "at a glance" stats (Craft, measured Nov 12 2026: faint fill one step off the page,
     small corners, 24px padding, about 280px tall, the figure at the top and its line at the bottom, 8px gap) in the site's tokens */
  .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; text-align: left; }
  .tiles li { display: flex; flex-direction: column; justify-content: flex-start; gap: var(--space-s); padding: var(--space-2xs) var(--space-m) var(--space-2xs) 0; }
  .tiles li + li { padding-left: var(--space-m); border-left: 1px solid var(--color-rule); }
  .tiles div { display: grid; gap: 8px; }
  .tiles strong { font: var(--weight-primary) clamp(2.75rem, 4.6vw, 4.25rem)/1 var(--font-primary); letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; color: var(--color-accent-text); }
  .tiles span { font: var(--weight-button) var(--text-sm)/1.3 var(--font-primary); color: var(--color-fg); }
  .tiles p { color: var(--color-muted); }
  @media (max-width: 1050px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-l); } .tiles li:nth-child(odd) { padding-left: 0; border-left: 0; } }
  /* Phones: one card per row, a hairline between rows (Rocco Nov 13 2026) */
  @media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); row-gap: 0; } .tiles li:nth-child(n) { gap: var(--space-2xs); padding: var(--space-m) 0; border-left: 0; } .tiles li:first-child { padding-top: 0; } .tiles li:last-child { padding-bottom: 0; } .tiles li + li { border-top: 1px solid var(--color-rule); } }
  .link-inline { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--color-accent); }
  .link-inline:hover { color: var(--color-accent-strong); }
  /* FAQ rows: Ramp pricing page measured Nov 12 2026 (16px rows, 1px hairline between, 20px icon right, muted answer) */
  .faq { border-block-end: 1px solid var(--color-rule); }
  .faq-item + .faq-item { border-top: 1px solid var(--color-rule); }
  .faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); padding-block: var(--space-s); font: var(--weight-primary) var(--text-h5)/1.3 var(--font-primary); cursor: pointer; list-style: none; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary .icon { --icon: 20px; transition: transform var(--dur) var(--ease-out); }
  .faq-item[open] summary .icon { transform: rotate(180deg); }
  .faq-item summary:hover { color: color-mix(in oklab, var(--color-fg) 70%, var(--color-bg)); }
  .faq-item > p { padding-block-end: var(--space-m); color: var(--color-muted); }
}
@layer utilities {
  .lead { font-size: var(--text-lead); line-height: 1.45; }
  .lead[data-size="l"] { font-size: var(--text-h4); line-height: 1.3; }
  .fine { font-size: var(--text-label); line-height: 1.65; color: var(--color-muted); }
  .fine a { text-decoration: underline; text-underline-offset: 0.2em; }
  .text-sm { font-size: var(--text-sm); }
  .muted { color: var(--color-muted); }
  .accent { color: var(--color-accent-text); }
  .rule { padding-top: var(--space-m); border-top: 1px solid var(--color-rule); }
  .pt-0 { padding-top: 0; }
  .relative { position: relative; }
  .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
