/*
 * The landing site's one stylesheet: plain CSS, no build step.
 *
 * The look is RentiFox's, adapted to PageFox (owner, 2026-11-23; the style
 * sheet is growth's social/style.md): cream ground, espresso text, the fox
 * orange, Plus Jakarta Sans, small capital kickers, round cards. The app keeps
 * its own look until it follows after launch, so the landing no longer copies
 * the dashboard's tokens. Its own are in look/tokens.json, and
 * tests/look.test.ts holds every value below to that file and measures the
 * contrast of every text and ground pair the page uses, in all four palettes.
 *
 * Dark mode follows the device (`prefers-color-scheme`): RentiFox's own dark
 * surfaces, the espresso band (its inverse tokens), not its blue. There is no
 * theme switch, because a switch needs a script and this site has none.
 */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  /* `optional`: the font arriving moves nothing. All four weights are preloaded (about 11 kB each). */
  font-display: optional;
  src: url('/fonts/plus-jakarta-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('/fonts/plus-jakarta-sans-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('/fonts/plus-jakarta-sans-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url('/fonts/plus-jakarta-sans-800.woff2') format('woff2');
}

/* Arial or Helvetica, sized to the font's width and height, for the moment
   before it arrives (measured against Liberation Sans, Arial's metrics). */
@font-face {
  font-family: 'Jakarta Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 103.76%;
  ascent-override: 100.03%;
  descent-override: 21.39%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --font: 'Plus Jakarta Sans', 'Jakarta Fallback', system-ui, sans-serif;

  --fox: #f26b1d;
  --fox-display: #b0450b;
  --paper: #f8ede2;
  --paper-deep: #f7e6d6;
  --stock: #ffffff;
  --stock-sunk: #f7e6d6;
  --rule-soft: #ebd9c8;
  --rule: #e2d2c3;
  --ink: #3a2a22;
  --ink-soft: #3a2a22;
  --ink-muted: #6e625a;
  --ink-faint: #6e625a;
  --press: #b0450b;
  --press-hover: #8a3606;
  --press-soft: #fde3d2;
  --press-edge: #f26b1d;
  --press-fill: #f26b1d;
  --press-fill-hover: #ff7b30;
  --on-press: #241812;
  --ok: #1a6e61;
  --ok-soft: #ddf3ef;
  --band: #3a2a22;
  --band-ink: #ffffff;
  --band-muted: #e9dcd2;
  --band-accent: #ffb888;

  --radius-chip: 10px;
  --radius-plate: 16px;
  --radius-card: 24px;
  --shadow-plate: 0 2px 6px rgba(58, 42, 34, 0.055), 0 1px 2px rgba(58, 42, 34, 0.025);
  --shadow-lift: 0 4px 12px rgba(58, 42, 34, 0.08), 0 1px 3px rgba(58, 42, 34, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fox-display: #ffb888;
    --paper: #3a2a22;
    --paper-deep: #4a382f;
    --stock: #4a382f;
    --stock-sunk: #5a473d;
    --rule-soft: #5a473d;
    --rule: #8c786c;
    --ink: #ffffff;
    --ink-soft: #e9dcd2;
    --ink-muted: #e9dcd2;
    --ink-faint: #cdbbaf;
    --press: #ffb888;
    --press-hover: #fde3d2;
    --press-soft: #5a473d;
    --ok: #5fd3bf;
    --ok-soft: #173d3a;
    --band: #4a382f;
    --shadow-plate: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.34), 0 12px 28px -12px rgba(0, 0, 0, 0.5);
  }
}

/* More contrast when the reader asks the system for it. */
@media (prefers-contrast: more) {
  :root {
    --rule-soft: #8c786c;
    --rule: #8c786c;
    --ink-muted: #3a2a22;
    --ink-faint: #3a2a22;
    --press: #8a3606;
    --press-hover: #3a2a22;
  }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --rule-soft: #8c786c;
    --rule: #cdbbaf;
    --ink-soft: #ffffff;
    --ink-muted: #ffffff;
    --ink-faint: #ffffff;
    --press: #fde3d2;
    --press-hover: #ffffff;
  }
}

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

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  /* rem, so a reader's larger default text size reaches every line. */
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in oklab, var(--fox) 28%, transparent);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--press);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--press-hover);
}

:focus-visible {
  outline: 2px solid var(--press);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

/* Jump past the header: out of sight until the keyboard reaches it. */
.skip {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-plate);
  background: var(--press-fill);
  color: var(--on-press);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
  color: var(--on-press);
}

/* ------------------------------------------------------------- header */

.top {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.wordmark {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark span {
  color: var(--fox);
}

.top nav ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
}

@media (min-width: 60rem) {
  .top nav ul {
    display: flex;
  }
}

.top nav a,
.top .quiet {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.top nav a:hover,
.top .quiet:hover {
  color: var(--ink);
  text-decoration: underline;
}

.top .quiet {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-plate);
  border: 1px solid var(--press-fill);
  background: var(--press-fill);
  /* A darker espresso on the fox orange: 5.68:1 (RentiFox's own #3a2a22
     measures 4.495:1, a hair under 4.5); tests/contrast.test.ts measures it. */
  color: var(--on-press);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-plate);
}

.button:hover {
  background: var(--press-fill-hover);
  border-color: var(--press-fill-hover);
  color: var(--on-press);
}

.button.second {
  background: var(--stock);
  border-color: var(--rule);
  color: var(--ink);
}

.button.second:hover {
  border-color: var(--press-edge);
  background: var(--stock);
  color: var(--ink);
}

.button.small {
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.9375rem;
}

/* On a narrow phone the header keeps one line: the hero's own button is the
   first thing below it. */
@media (max-width: 29.99rem) {
  .top .button.small {
    display: none;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 3rem 0 2.5rem;
}

.hero .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .hero {
    padding: 4.5rem 0 4rem;
  }

  .hero .wrap {
    grid-template-columns: 1.15fr 1fr;
  }
}

/* The kicker: small capitals with an orange dot before them. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--fox);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

/* The one orange phrase: the deep orange (the link colour), 4.92:1 on the
   cream; the bright fox orange reads at 2.64:1 there and carries no text. */
.hero h1 .accent {
  color: var(--fox-display);
}

.lead {
  margin-top: 1.25rem;
  font-size: clamp(1.1875rem, 2.4vw, 1.375rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 34rem;
  letter-spacing: -0.01em;
}

.hero .say {
  margin-top: 1rem;
  color: var(--ink-muted);
  max-width: 34rem;
}

.hero .actions {
  margin-top: 1.75rem;
}

.note {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

/* The example: what someone says and the page that comes of it, a picture
   marked "Példa" / "Example" in itself. Beside the words on a wide screen,
   under them on a narrow one. */
.example {
  justify-self: center;
  width: 100%;
  max-width: 30rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
}

.promises {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.promises li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-card);
  background: var(--stock);
  box-shadow: var(--shadow-plate);
  color: var(--ink-muted);
  font-size: 0.9688rem;
}

.promises strong {
  display: block;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* -------------------------------------------------------------- sections */

section {
  padding: 3.5rem 0;
}

section.band {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.head p {
  margin-top: 0.75rem;
  color: var(--ink-muted);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-card);
  background: var(--stock);
  box-shadow: var(--shadow-lift);
}

.card p {
  color: var(--ink-muted);
}

.card .actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.examples {
  margin-top: 1.5rem;
  color: var(--ink-muted);
  max-width: 46rem;
}

.fair {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.fair li {
  padding: 1.25rem 1.25rem 1.25rem 3.25rem;
  position: relative;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-card);
  background: var(--stock);
  color: var(--ink-muted);
}

/* A tick drawn in CSS: decoration, so nothing for a screen reader to read. */
.fair li::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 1.45rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--ok-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%231A6E61' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.fair h3 {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

/* ------------------------------------------------------------ why PageFox */

/* The mission sentence, said as the section's lead. */
.head .mission {
  color: var(--ink-soft);
  font-size: 1.125rem;
  font-weight: 600;
}

/* The argument: one paragraph, set apart by a rule in the press colour's edge. */
.argument {
  max-width: 46rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--press-edge);
  border-radius: var(--radius-plate);
  background: var(--stock-sunk);
}

.argument h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.argument p {
  color: var(--ink-soft);
}

.strengths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.strengths li {
  padding: 1.25rem;
  border: 1px solid var(--rule-soft);
  border-top: 3px solid var(--press-edge);
  border-radius: var(--radius-card);
  background: var(--stock);
  box-shadow: var(--shadow-plate);
  color: var(--ink-muted);
}

.strengths h3 {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

/* A narrow column inside the usual width, so it starts where every other
   section starts. */
.not > * {
  max-width: 46rem;
}

.not p + p {
  margin-top: 1rem;
}

.not p {
  color: var(--ink-muted);
}

.not .plain {
  color: var(--ink);
  font-weight: 600;
}

/* ----------------------------------------------------------------- prices */

/* The plan cards and the packs under them, after the one line that asks what a site costs now. */

.anchor {
  margin: 2rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.packs,
.referral {
  margin-top: 1.5rem;
  max-width: 46rem;
}

.referral p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.packs ul {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-muted);
}

.packs li + li {
  margin-top: 0.35rem;
}

.plans {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-card);
  background: var(--stock);
  box-shadow: var(--shadow-plate);
}

.plan.free {
  border-color: var(--press-edge);
  box-shadow: var(--shadow-lift);
}

.plan .price {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.plan ul {
  margin: 0.25rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-muted);
}

.plan li + li {
  margin-top: 0.2rem;
}

.plan .buys {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.plan .actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

.small-print {
  margin-top: 1.5rem;
  max-width: 46rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.small-print p + p {
  margin-top: 0.6rem;
}

.soon {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--press-soft);
  border: 1px solid var(--press-edge);
  color: var(--press);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* -------------------------------------------------------------------- FAQ */

.faq {
  max-width: 46rem;
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-card);
  background: var(--stock);
}

.faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  min-height: 2.75rem;
  font-weight: 700;
  color: var(--ink);
}

.faq details p {
  padding: 0 1.25rem 1.1rem;
  color: var(--ink-muted);
}

.faq details p + p {
  padding-top: 0;
}

/* --------------------------------------------------------------- the end */

/* The last call, on the espresso band. */
section.band.last {
  background: var(--band);
  border-color: var(--band);
  color: var(--band-ink);
}

/* The focus ring stands on the band here: the light accent, not --press. */
.last :focus-visible {
  outline-color: var(--band-accent);
}

.last {
  text-align: center;
}

.last h2 {
  color: var(--band-ink);
}

.last .actions {
  justify-content: center;
  margin-top: 1.5rem;
}

.last p {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  color: var(--band-muted);
}

footer {
  border-top: 1px solid var(--rule-soft);
  padding: 2rem 0 2.5rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

footer .wrap {
  display: grid;
  gap: 1rem;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

footer a {
  color: var(--ink-muted);
}

footer a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------ not found */

.lost {
  padding: 4rem 0;
  max-width: 40rem;
}

.lost h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.lost p {
  margin-top: 1rem;
  color: var(--ink-muted);
}

.lost .actions {
  margin-top: 1.5rem;
}

.lost hr {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--rule-soft);
}

/* A section's first paragraph after its heading, where there is no .head. */
.not h2 + p {
  margin-top: 1rem;
}

/* ------------------------------------------------------------ how it works */

/* Between two sections on the same ground, a hairline says where one ends. */
section.ruled {
  border-top: 1px solid var(--rule-soft);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

/* A screenshot comes as WebP with a PNG for a browser that has no WebP. */
.steps picture {
  display: block;
}

.steps img {
  display: block;
  height: auto;
  width: 100%;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  background: var(--stock-sunk);
}

.steps h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.steps p {
  margin-top: 0.4rem;
  color: var(--ink-muted);
}

/* The step's number: a figure in a ring of the pressable orange, read as text. */
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--press-edge);
  color: var(--press);
  font-size: 1rem;
  font-weight: 800;
}

/* --------------------------------------------------------- prices, gross */

.plan .gross {
  margin-top: -0.35rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.plan .price small {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------- consent */

/*
 * The cookie bar (consent.js), on the page only when a statistics tool is
 * configured. A bar at the foot, not a wall: the page works behind it, and the
 * page gains room at its end so the bar never hides what it would cover there.
 */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-height: 70vh;
  overflow-y: auto;
  padding: 1rem max(1rem, calc((100vw - 68rem) / 2));
  background: var(--stock);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 24px -12px rgba(58, 42, 34, 0.2);
  color: var(--ink);
}

.consent h2 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.consent h2:focus {
  outline: none;
}

.consent p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

/* A <button> does not take the page's font as the page's <a class="button"> does. */
.consent button {
  font-family: inherit;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.consent-categories {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.consent-categories label {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.consent-categories strong {
  white-space: nowrap;
}

html.consent-open body {
  padding-bottom: 18rem;
}

/* A button that reads as a link: the footer's "Cookie settings", the bar's "Settings". */
button.link {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--press);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

footer button.link {
  color: var(--ink-muted);
}

@media (prefers-color-scheme: dark) {
  .consent {
    box-shadow: 0 -8px 24px -12px rgb(0 0 0 / 0.6);
  }
}
