/* ─── TOKENS, RESET, TYPE, BUTTONS ──────────────────────────────── */

:root {
  /* surfaces — warm, editorial off-white */
  --bg:        #F7F4EF;
  --bg-2:      #F1ECE3;
  --card:      #FFFFFF;
  --surface-2: #F3F1EC;

  /* ink */
  --ink:       #14222E;
  --ink-mid:   #46586A;
  --ink-dim:   #8A93A0;

  /* Microsoft palette */
  --ms-red:    #F25022;
  --ms-green:  #7FBA00;
  --ms-yellow: #FFB900;
  --ms-blue:   #00A4EF;
  --ms-grey:   #737373;

  --accent:      var(--ms-red);
  --accent-soft: rgba(242, 80, 34, 0.10);
  --accent-deep: #C0381A;

  --border:    rgba(20, 34, 46, 0.10);
  --border-hi: rgba(20, 34, 46, 0.20);

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  /* Interface text is deliberately the same humanist sans as body copy.
     Monospace on buttons and labels reads as a developer tool or a template —
     the opposite of what someone needs to feel before entering a card number.
     Kept as a token (rather than deleted) so the two roles stay nameable. */
  --mono:  'Inter', system-ui, sans-serif;

  --nav-h: 72px;
  --maxw: 1140px;
  --radius: 20px;

  /* Every tick/icon on the site is drawn, never an emoji — emoji render
     differently per platform and break the type. */
  --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23F25022' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.4 4.7 9 10 3.2'/%3E%3C/svg%3E");
  --flame-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12.7 1.3a.7.7 0 0 0-1.15.28C10.7 4.1 9.3 5.9 7.6 7.5 5.6 9.4 4 11.5 4 14.3A8 8 0 0 0 20 14.3c0-3.2-1.7-5.6-3.6-7.7-1.8-2-3.2-3.7-3.7-5.3Zm-.7 19a3.4 3.4 0 0 1-3.4-3.4c0-1.4.7-2.4 1.6-3.3.7-.7 1.4-1.4 1.8-2.3a.5.5 0 0 1 .85-.08c.5.7 1.05 1.35 1.6 2 .85 1 1.55 2 1.55 3.4a3.4 3.4 0 0 1-3.4 3.4Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* ─── TYPE ───────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.12;
  text-wrap: balance;
}

/* No paragraph ends on a single-word line. */
p { text-wrap: pretty; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background: #fff;
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ─── ICON MARK (nav + footer) ───────────────────────────────────── */

.icon-mark { width: 38px; height: auto; overflow: hidden; }
.icon-mark .bar { fill: var(--ink); }
.icon-mark circle { transform-box: fill-box; transform-origin: center; transition: opacity .4s ease; }
.icon-mark .d-orange { fill: var(--ms-red); }
.icon-mark .d-blue   { fill: var(--ms-blue); }
.icon-mark .d-yellow { fill: var(--ms-yellow); opacity: 0; }
.icon-mark .d-green  { fill: var(--ms-green);  opacity: 0; }

/* hover: the mark scrolls right like a conveyor; yellow + green roll in from the left */
.icon-mark:hover .bar,
.icon-mark:hover circle { animation: convey 2.6s linear infinite; }
.icon-mark:hover > *:nth-child(1) { animation-delay: 0s; }
.icon-mark:hover > *:nth-child(2) { animation-delay: -.29s; }
.icon-mark:hover > *:nth-child(3) { animation-delay: -.58s; }
.icon-mark:hover > *:nth-child(4) { animation-delay: -.87s; }
.icon-mark:hover > *:nth-child(5) { animation-delay: -1.16s; }
.icon-mark:hover > *:nth-child(6) { animation-delay: -1.45s; }
.icon-mark:hover > *:nth-child(7) { animation-delay: -1.74s; }
.icon-mark:hover > *:nth-child(8) { animation-delay: -2.03s; }
.icon-mark:hover > *:nth-child(9) { animation-delay: -2.32s; }

@keyframes convey {
  0%   { transform: translateX(0);     opacity: 1; }
  38%  { transform: translateX(66px);  opacity: 0; }
  39%  { transform: translateX(-66px); opacity: 0; }
  100% { transform: translateX(0);     opacity: 1; }
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */

/* Sentence case, sans, no tracking — a button should read instantly, not be
   decoded. This is the single biggest trust signal on the page. */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

/* the 3D ledge treatment */
.btn-primary {
  background: linear-gradient(180deg, #FF6A40, var(--ms-red));
  color: #fff;
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .30),
    0 4px 0 var(--accent-deep),
    0 10px 20px -8px rgba(242, 80, 34, .42);
  transition: transform .09s ease, box-shadow .09s ease, filter .2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .30),
    0 8px 0 var(--accent-deep),
    0 18px 30px -6px rgba(242, 80, 34, .62);
}
.btn-primary:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    0 2px 0 var(--accent-deep),
    0 6px 12px -6px rgba(242, 80, 34, .55);
}

/* same ledge geometry as .btn-primary, in a neutral tone so the two CTAs sit
   at the same height without competing for attention */
.btn-ghost {
  background: linear-gradient(180deg, #FFFFFF, #F6F3EE);
  color: var(--ink);
  transform: translateY(0);
  box-shadow:
    inset 0 0 0 1px var(--border-hi),
    inset 0 1px 0 #fff,
    0 4px 0 #D9D2C7,
    0 10px 20px -8px rgba(20, 34, 46, .26);
  transition: transform .09s ease, box-shadow .09s ease, color .2s ease;
}
.btn-ghost:hover {
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    inset 0 1px 0 #fff,
    0 8px 0 #D9D2C7,
    0 18px 30px -8px rgba(20, 34, 46, .34);
}
.btn-ghost:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 0 0 1px var(--border-hi),
    0 2px 0 #D9D2C7,
    0 6px 12px -8px rgba(20, 34, 46, .30);
}

.btn-primary.full,
.btn-ghost.full { width: 100%; }

/* ─── REVEAL ON SCROLL ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
