/* arwoste.fi: same design tokens as the app (src/styles/tokens.css, kept in sync by hand). */
:root {
  /* Surfaces & ink (light) */
  --paper: #f3f0ea;
  --surface: #fbfaf7;
  --surface-sunk: #ebe7df;
  --ink: #121110;
  --ink-soft: #5c5750;
  --ink-faint: #7a746a;
  --hairline: #e2ddd3;
  --hairline-strong: #cfc8bb;

  /* Brand */
  --backdrop: #e6e1d7;
  --brand: #a3834f;
  --brand-strong: #a3834f;
  --brand-wash: #f3f0ea;

  /* Accent */
  --accent: #121110;
  --accent-hover: #2b2926;
  --accent-ink: #f6f3ee;
  --accent-tint: #ebe6dc;

  /* Status */
  --ok: #2f6b4f;
  --warn: #8a6d1f;
  --alert: #8c3b2f;
  /* Traffic-light colours for the profile-check marks only; the yellow is too light for text. */
  --signal-yellow: #f2b705;
  --signal-red: #8c3b2f;

  /* Radius */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 999px;

  /* Elevation — used sparingly */
  --shadow-sm: 0 0 0 1px rgba(18, 17, 16, 0.04);
  --shadow-lift: none;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-1: 130ms;
  --dur-2: 220ms;

  /* Type */
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;

  /* Layout */
  --app-max: 460px;
  --space-page: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0e0d;
    --surface: #171614;
    --surface-sunk: #1d1c19;
    --ink: #f2efe9;
    --ink-soft: #a39d93;
    --ink-faint: #7f796f;
    --hairline: #2a2825;
    --hairline-strong: #3a3733;

    --backdrop: #080807;
    --brand: #c4a572;
    --brand-strong: #c4a572;
    --brand-wash: #0f0e0d;

    --accent: #f2efe9;
    --accent-hover: #ffffff;
    --accent-ink: #121110;
    --accent-tint: #22201c;

    --ok: #6fb58c;
    --warn: #c9a24e;
    --alert: #d08b7d;
    --signal-yellow: #f5c518;
    --signal-red: #f0564a;

    --shadow-sm: 0 0 0 1px rgba(0, 0, 0, 0.3);
    --shadow-lift: none;
  }
}

[data-theme="dark"] {
  --paper: #0f0e0d;
  --surface: #171614;
  --surface-sunk: #1d1c19;
  --ink: #f2efe9;
  --ink-soft: #a39d93;
  --ink-faint: #7f796f;
  --hairline: #2a2825;
  --hairline-strong: #3a3733;

  --backdrop: #080807;
  --brand: #c4a572;
  --brand-strong: #c4a572;
  --brand-wash: #0f0e0d;

  --accent: #f2efe9;
  --accent-hover: #ffffff;
  --accent-ink: #121110;
  --accent-tint: #22201c;

  --ok: #6fb58c;
  --warn: #c9a24e;
  --alert: #d08b7d;
  --signal-yellow: #f5c518;
  --signal-red: #f0564a;

  --shadow-sm: 0 0 0 1px rgba(0, 0, 0, 0.3);
  --shadow-lift: none;
}

/* ---- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv05" 1, "cv08" 1, "ss01" 1;
}
a { color: inherit; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 720px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.display, .h2 {
  font-family: var(--font-display);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.display { font-size: clamp(38px, 6.4vw, 64px); margin-bottom: 20px; }
.h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.lead--narrow { max-width: 30em; }
.fine { font-size: 13px; color: var(--ink-faint); }
.dot { color: var(--brand); }

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: background var(--dur-1) var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn--sm { font-size: 14px; padding: 9px 14px; }
.btn--lg { font-size: 16px; padding: 16px 26px; }
.btn--block { width: 100%; }

/* ---- Header -------------------------------------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.bar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.bar__right { display: flex; align-items: center; gap: 14px; }
.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.wordmark--sm { font-size: 13px; }

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--surface-sunk);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
}
.lang button {
  min-width: 34px;
  padding: 5px 9px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---- Hero ---------------------------------------------------------------- */

.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.cta-row { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* Illustrative phone: the app's own look, built in HTML. */
.phone { justify-self: center; width: 100%; max-width: 330px; }
.phone__screen {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 34px;
  padding: 26px 20px 22px;
  outline: 8px solid var(--surface-sunk);
}
.phone figcaption { text-align: center; margin-top: 18px; }
.m-bar { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.m-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; }
.m-shop { font-family: var(--font-display); font-size: 17px; }
.m-label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 14px 0 6px;
}
.m-label .m-muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.m-muted { color: var(--ink-faint); }
.m-small { font-size: 12.5px; line-height: 1.4; }
.m-rank { font-family: var(--font-display); line-height: 1; margin-bottom: 6px; }
.m-rank__n { font-size: 46px; color: var(--brand); }
.m-rank__of { font-size: 20px; color: var(--ink-faint); }
.m-list { list-style: none; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.m-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  font-size: 13.5px;
  border-top: 1px solid var(--hairline);
}
.m-list li:first-child { border-top: none; }
.m-list small { display: block; color: var(--ink-faint); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.mark { flex: none; width: 10px; height: 10px; border-radius: var(--r-full); margin-top: 5px; }
.mark--3 { background: var(--ok); }
.mark--2 { background: var(--signal-yellow); }
.mark--1 { background: var(--signal-red); }
.m-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 500;
}
.m-toast .mark { margin-top: 0; }

/* ---- Sections ------------------------------------------------------------ */

.section { padding: 72px 0; border-top: 1px solid var(--hairline); }
.section--sunk { background: var(--surface-sunk); }

.steps { list-style: none; display: grid; gap: 14px; margin-top: 34px; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; }
.step__n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3, .feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p, .feature p { color: var(--ink-soft); font-size: 15px; }

.features { display: grid; gap: 1px; margin-top: 34px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: var(--surface); padding: 26px 24px; }
.feature h3::before { content: ""; display: block; width: 18px; height: 2px; background: var(--brand); margin-bottom: 16px; }

.price {
  max-width: 440px;
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  padding: 30px 26px 24px;
}
.price__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.price__amount { font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.price__per { color: var(--ink-soft); }
.price__list { list-style: none; margin-bottom: 26px; }
.price__list li { padding: 10px 0 10px 28px; border-top: 1px solid var(--hairline); position: relative; }
.price__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.price .fine { margin-top: 14px; }

.faq { margin-top: 26px; border-top: 1px solid var(--hairline-strong); }
.faq details { border-bottom: 1px solid var(--hairline-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-size: 20px; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 40em; }

.closing__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing .btn { margin-top: 28px; }

.foot { border-top: 1px solid var(--hairline); padding: 28px 0 40px; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot__link { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }

/* Privacy page */
.prose h2 { font-size: 18px; font-weight: 600; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose .lead { margin-bottom: 8px; }
.placeholder { border: 1px dashed var(--brand); border-radius: var(--r-md); padding: 12px 14px; }

/* ---- Larger screens ------------------------------------------------------- */

@media (max-width: 479px) {
  .bar__cta { display: none; }
  .btn--lg { width: 100%; }
  .cta-row { align-items: stretch; text-align: center; }
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 96px 0; }
}

@media (min-width: 960px) {
  .hero { padding: 88px 0 104px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Trial request form (dialog) ----------------------------------------- */

.modal {
  border: none;
  padding: 0;
  margin: auto;
  width: min(440px, calc(100% - 32px));
  background: transparent;
  color: var(--ink);
}
.modal::backdrop { background: rgba(18, 17, 16, 0.55); }
.modal__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  padding: 30px 24px 22px;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-faint);
  border-radius: var(--r-full);
}
.h3 { font-family: var(--font-display); font-weight: 450; font-size: 26px; line-height: 1.15; margin-bottom: 10px; padding-right: 30px; }
.modal__lead { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.modal__note { margin-top: 12px; }
.modal__note a { margin-left: 4px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--alert); font-size: 14px; margin-bottom: 12px; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ---- Customer view (How it works) ---------------------------------------- */

.customer { display: grid; gap: 16px; margin-top: 30px; }
.customer__phone { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 18px; }
.customer__label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.customer__note { margin-top: 12px; }
.sms__from { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.sms__bubble { background: var(--surface-sunk); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 14px; max-width: 290px; }
.sms__link { display: block; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; margin-top: 4px; }
.landing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 4px 2px; }
.landing__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); }
.landing__shop { font-family: var(--font-display); font-size: 13px; margin-bottom: 6px; }
.landing__title { font-family: var(--font-display); font-size: 21px; }
.landing__body { font-size: 12.5px; color: var(--ink-soft); max-width: 250px; }
.landing__btn { margin-top: 8px; width: 100%; max-width: 250px; padding: 10px; border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.landing__alt { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* ---- Why / built-for lists ------------------------------------------------ */

.why { display: grid; gap: 28px; margin-top: 30px; }
.why__item { border-top: 2px solid var(--ink); padding-top: 16px; }
.why__item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.why__item p { color: var(--ink-soft); font-size: 15px; }
.why__src { margin-top: 8px; }

@media (min-width: 720px) {
  .customer { grid-template-columns: 1fr 1fr; max-width: 720px; }
  .why { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
