/* Xenkeep product site: porcelain ground, ink type, one eucalyptus accent. */
:root {
  --paper: #F6F3EF;
  --paper-2: #EFEAE3;
  --panel: #FFFFFF;
  --ink: #17140F;
  --ink-2: #5B554E;
  --ink-3: #8C857D;
  --line: #E3DDD5;
  --line-2: #ECE7E1;
  --accent: #4F6F62;
  --accent-deep: #3E5A4F;
  --accent-soft: #E4ECE8;
  --accent-ink: #F4F7F5;
  --night: #1B1816;
  --night-2: #26221F;
  --night-ink: #F1ECE5;
  --night-ink-2: #B9B0A6;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(23, 20, 15, 0.05), 0 12px 40px rgba(23, 20, 15, 0.08);
  --shadow-lg: 0 30px 80px rgba(23, 20, 15, 0.16);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.small { font-size: 0.85rem; color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; transition: transform 0.12s, background 0.15s, border-color 0.15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #000; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--night-ink); color: var(--night); }
.btn--outline-light { background: transparent; border-color: rgba(241, 236, 229, 0.3); color: var(--night-ink); }
.btn--outline-light:hover { border-color: var(--night-ink); }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246, 243, 239, 0.86); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-2); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__mark { width: 30px; height: 30px; display: block; flex: none; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; }
.nav__links a { text-decoration: none; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }

/* The menu on a phone.
   This used to be `.nav__links a:not(.btn) { display: none }` — Product, Why
   not Fresha, Pricing and Live demo simply vanished below 760px, so a visitor
   on a phone had no way to reach any of them. They are behind a button now. */
.nav__burger {
  display: none;
  width: 44px; height: 44px; margin-right: -11px; padding: 0;
  background: none; border: 0; border-radius: 10px;
  color: var(--ink-2); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__burger svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; fill: none; }
.nav__burger:hover { color: var(--ink); }
.nav__burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 760px) {
  .nav .wrap { min-height: 58px; gap: 12px; }
  .nav__burger { display: inline-flex; order: 3; }
  .brand { min-width: 0; font-size: 1.15rem; }

  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 2px 20px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 16px 34px rgba(31, 28, 25, 0.09);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) {
    padding: 15px 2px; font-size: 1rem; color: var(--ink);
    border-top: 1px solid var(--line-2);
  }
  .nav__links a:not(.btn):first-child { border-top: 0; }
  .nav__links .btn { margin-top: 14px; justify-content: center; }
}

/* hero */
.hero { padding: 84px 0 40px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin: 14px 0 22px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-3); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding-top: 56px; } }

/* device frame for screenshots */
.frame { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: #FBF9F6; }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.frame__bar span { margin-left: 8px; font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); letter-spacing: 0.06em; }
.frame img { width: 100%; height: auto; }
.frame--tilt { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
@media (max-width: 900px) { .frame--tilt { transform: none; } }

/* proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin-top: 56px; background: var(--paper-2); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.proof .wrap > div { font-size: 0.9rem; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.proof .wrap > div::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.proof strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .proof .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .proof .wrap { grid-template-columns: 1fr; } }

/* sections */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 12px 0 16px; }
.section--night { background: var(--night); color: var(--night-ink); }
.section--night .eyebrow { color: var(--night-ink-2); }
.section--night .lede { color: var(--night-ink-2); }
.section--night .small { color: var(--night-ink-2); }

/* thesis */
.thesis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.thesis h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 12px 0 0; }
.thesis p + p { margin-top: 16px; }
.thesis .col { font-size: 1.05rem; color: var(--ink-2); line-height: 1.7; }
.thesis .col strong { color: var(--ink); }
@media (max-width: 900px) { .thesis { grid-template-columns: 1fr; gap: 24px; } }

/* tour */
.tour { display: grid; gap: 80px; }
.tour__item { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.tour__item:nth-child(even) .tour__text { order: 2; }
.tour__text h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 10px 0 14px; }
.tour__text p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.65; }
.tour__text ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tour__text li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.tour__text li::before { content: ''; width: 14px; height: 1px; background: var(--accent); flex: none; margin-top: 0.75em; }
.tour__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tour__pair .frame:last-child { transform: translateY(28px); }
@media (max-width: 900px) { .tour__item, .tour__item:nth-child(even) .tour__text { grid-template-columns: 1fr; order: 0; } .tour { gap: 56px; } .tour__pair .frame:last-child { transform: none; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 24px 22px; }
.feature h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 8px; letter-spacing: 0; }
.feature p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; }
.feature .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* compare */
.cmp { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cmp th, .cmp td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid rgba(241, 236, 229, 0.12); vertical-align: top; }
.cmp th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--night-ink-2); font-weight: 500; }
.cmp td:first-child { font-weight: 600; width: 24%; }
.cmp td:nth-child(2) { color: var(--night-ink-2); width: 34%; }
.cmp td:nth-child(3) { color: var(--night-ink); }
.cmp-wrap { overflow-x: auto; }
.cmp-note { margin-top: 26px; max-width: 60ch; color: var(--night-ink-2); font-size: 0.95rem; line-height: 1.65; }

/* demo */
.lockup { height: 56px; width: auto; max-width: 100%; margin: 6px 0 22px; }
@media (max-width: 560px) { .lockup { height: 44px; } }
.demos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.demo { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.demo .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.demo h3 { font-size: 1.45rem; }
.demo p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.demo .creds { background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); line-height: 1.6; }
.demo .creds b { color: var(--ink); font-weight: 500; }
.demo .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .demos { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px 26px; display: flex; flex-direction: column; }
.plan--hi { border-color: var(--ink); box-shadow: var(--shadow); }
.plan .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.plan h3 { font-size: 1.6rem; margin: 8px 0 4px; }
.plan .price { font-family: var(--serif); font-size: 3rem; line-height: 1; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-3); margin-left: 4px; }
.plan .for { font-size: 0.92rem; color: var(--ink-2); min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 8px; font-size: 0.92rem; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: '✓'; color: var(--accent); font-weight: 700; flex: none; }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: 26px; font-size: 0.9rem; color: var(--ink-2); max-width: 64ch; line-height: 1.6; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 10px; font-size: 0.95rem; color: var(--ink-2); line-height: 1.65; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* form */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 12px 0 16px; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink); letter-spacing: 0; text-transform: none; font-weight: 400; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.form__ok { background: var(--accent-soft); color: var(--accent-deep); border-radius: 12px; padding: 14px 16px; font-size: 0.95rem; }
.form__err { background: #F6E7E2; color: #8B4A3A; border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; margin-bottom: 12px; }
.contact-alt { margin-top: 26px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 0.85rem; color: var(--ink-3); }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--ink-2); text-decoration: none; margin-left: 18px; }
.footer a:hover { color: var(--ink); }

/* demo page */
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; }
.step h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.step p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; }
.step code { font-family: var(--mono); font-size: 0.82rem; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
/* Links in a step open the live demo, so they read as links, not body text. */
.step a { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(79, 111, 98, 0.4); }
.step a:hover { color: var(--accent-deep); text-decoration-color: var(--accent-deep); }
.step a[target="_blank"]::after { content: ' ↗'; display: inline-block; text-decoration: none; font-size: 0.85em; }
.demo-hero, .page-hero { padding: 72px 0 36px; }
.demo-hero h1, .page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin: 12px 0 18px; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.frames { display: grid; gap: 14px; align-content: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.callout { background: var(--accent-soft); color: var(--accent-deep); border-radius: var(--r); padding: 16px 18px; font-size: 0.92rem; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) { .btn, .frame--tilt { transition: none; transform: none; } html { scroll-behavior: auto; } }

/* ── cookies ──────────────────────────────────────────────────────────────
   A bar rather than a wall: it says what it wants and gets out of the way,
   and both answers are the same size beside each other. */
.cc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(31, 28, 25, 0.07);
}
.cc__wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding-top: 16px; padding-bottom: 16px;
}
.cc__text { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.cc__actions { display: flex; gap: 10px; flex: none; }
.cc__btn { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }

@media (max-width: 700px) {
  .cc__wrap { flex-direction: column; align-items: stretch; gap: 14px; }
  .cc__actions { justify-content: stretch; }
  .cc__btn { flex: 1 1 0; }
}
