/* ==========================================================================
   Reffie Leasing — design tokens + utilities
   Official Reffie style: light warm paper, emerald primary, hairline borders.
   Source of truth: reffie.com / careers-page src/styles/global.css
   ========================================================================== */

:root {
  /* Brand */
  /* Reffie logo emerald — the exact fill used for buttons and message bubbles. */
  --reffie-green: #10b981;
  --primary: var(--reffie-green);
  --green: var(--primary);
  --btn-ink: #fff;
  --green-deep: #0a8a60;
  --green-ink: #07291e;
  --green-tint: #edfcf7;
  --green-line: #c8f0e2;
  --orange: #ff5e20;
  --amber: #feb820;

  /* Neutrals */
  --paper: #fafaf7;
  --paper-2: #f4f4f1;
  --ink: #101613;
  --ink-soft: #43504a;
  --ink-faint: #6e7b75;
  --line: #e3e3de;

  --surface: #ffffff;

  /* Idle (non-coverage) states on the coverage map */
  --map-idle: #e4e5e0;

  /* Type */
  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-brand: 'Outfit', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* --------------------------------------------------------- reset / base -- */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain overlay for atmosphere */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--primary);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

/* ------------------------------------------------------------- layout --- */

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 10vw, 7rem);
  position: relative;
}

/* Airy alternation between paper tones — no borders, no gradients.
   Order down the page: sources, how, platform, pricing, cta. */
#how,
#pricing {
  background: var(--paper-2);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.25rem, 5vw, 3rem);

  & h3 {
    margin-top: 0.85rem;
  }

  & p {
    color: var(--ink-soft);
    margin-top: 1rem;
    font-size: clamp(1rem, 1.6vw, 1.075rem);
  }
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

/* Mono label: kickers, stat captions, meta. Size and tracking are tunable so a
   caller never has to restate the whole block. */
.label {
  font-family: var(--font-display);
  font-size: var(--label-size, 0.72rem);
  font-weight: 500;
  letter-spacing: var(--label-tracking, 0.14em);
  text-transform: uppercase;
  color: var(--green-deep);
}

/* Fine print: footer lines, disclaimers. */
.meta {
  margin: 0;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.meta p {
  margin: 0;
}

.meta a {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--green-line);
  transition:
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.meta a:hover {
  color: var(--green-ink);
  border-color: var(--primary);
}

.label--faint {
  color: var(--ink-faint);
}

.label--orange {
  color: var(--orange);
}

/* ------------------------------------------------------------- pieces --- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.75rem;
  transition:
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);

  & h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
  }

  /* :not(.label) so a mono kicker inside a card keeps its own colour and size —
     `.card p` would otherwise outrank the single-class .label utility. */
  & p:not(.label) {
    color: var(--ink-soft);
    font-size: 0.975rem;
  }
}

/* Cards lift on hover unless they opt out with .card--static — panels that are
   read, not clicked (the price card, the add-on note, the "where the AI is" panel). */
.card:not(.card--static):hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgb(7 41 30 / 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.6em;
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.btn-primary {
  background: var(--reffie-green);
  color: var(--btn-ink);
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--green-deep);
}

/* Mono meta chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.35em 0.9em;
  white-space: nowrap;
}

.chip--green {
  color: var(--green-deep);
  background: var(--green-tint);
  border-color: var(--green-line);
}

/* -------------------------------------------------------------- grids --- */

.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}