/* Domofolio website. One file, no gradients, no shadows beyond the app's own hairline ones.
   Site colours are the app's light theme (src/theme/index.ts); the few app-only colours that the
   redrawn screens need are declared on .app below. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF8F5;
  --surface: #FFFFFF;
  --surface-muted: #F2EFEA;
  --line: #E6E0D7;
  --line-strong: #CFC7BB;
  --ink: #1C1A17;
  --ink-2: #6B655C;
  --ink-3: #8F887D;
  --petrol: #1F4E5F;
  --petrol-deep: #143642;
  --petrol-mist: #EDF4F6;
  --terracotta: #E07A3F;
  --terracotta-deep: #A44A16;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: 20px;
  --k: 0.74; /* scale of the redrawn app screens (390pt wide) */
}
@media (min-width: 760px) {
  :root { --gutter: 32px; }
}
@media (max-width: 359px) {
  :root { --k: 0.68; }
}
@media (max-width: 559px) {
  .site-nav { column-gap: 18px; }
  .site-nav__lang { padding-left: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, p, ul, figure, dl { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s; }
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 10px; }

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header and footer ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--petrol); }
.brand__mark .mark { width: 20px; height: auto; }
.brand__name { font: 500 1.4rem/1 var(--font-display); letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; font-size: 0.94rem; }
.site-nav a { padding-block: 6px; color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav__lang { padding-left: 20px; border-left: 1px solid var(--line-strong); }

.site-footer { background: var(--petrol-deep); color: rgba(250, 248, 245, 0.78); padding-block: 56px; font-size: 0.95rem; }
.site-footer a { color: var(--paper); }
.footer { display: grid; gap: 36px; }
.footer__brand p { margin-top: 14px; }
.brand--light { color: var(--paper); }
.brand--light .brand__mark { background: none; width: 34px; }
.footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__owner p { overflow-wrap: anywhere; }
.footer__label { margin-bottom: 6px; font-size: 0.8rem; letter-spacing: 0.04em; color: rgba(250, 248, 245, 0.62); }

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

.num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font: 600 0.85rem/1 var(--font-text);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--terracotta-deep);
}
.tag { padding: 3px 7px; border: 1px solid var(--terracotta-deep); border-radius: 3px; font-size: 0.75rem; letter-spacing: 0.02em; }

h2 {
  margin-bottom: 24px;
  font: 450 clamp(1.9rem, 3.6vw, 2.9rem) / 1.1 var(--font-display);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.feature, .pricing, .shots, .faq {
  padding-block: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--line);
}
.feature__text p:not(.num) { max-width: 34rem; text-wrap: pretty; }
.feature__fig { margin-top: 44px; }

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

.hero { padding-block: clamp(36px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 0.92rem; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); flex: none; }
h1 {
  margin-bottom: 28px;
  font: 450 clamp(2.6rem, 6.2vw, 5rem) / 1.02 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead { max-width: 30rem; font-size: 1.2rem; line-height: 1.55; text-wrap: pretty; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid var(--petrol);
  border-radius: 6px;
  background: var(--petrol);
  color: var(--surface);
  font-weight: 500;
  font-size: 0.97rem;
  line-height: 1.2;
  text-decoration: none;
}
a.store:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); color: var(--surface); }
.store--soon { gap: 0.4em; border: 1px dashed var(--line-strong); background: none; color: var(--ink); }
.store__soon { color: var(--ink-2); font-weight: 400; }
.hero__shot { margin-top: 56px; }

/* ---------- figures and the phone frame ---------- */

.shot { display: flex; flex-direction: column; gap: 14px; width: min-content; max-width: 100%; }
.shot__cap { width: calc(390px * var(--k) + 14px); max-width: 100%; font-size: 0.85rem; line-height: 1.45; color: var(--ink-2); }
.shot--pair { width: auto; }
.shot--pair .shot__cap { width: auto; max-width: 34rem; }
.shot__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 40px; }

.phone {
  flex: none;
  width: calc(390px * var(--k) + 14px);
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 42px;
  background: var(--surface);
}
.phone__screen { width: calc(390px * var(--k)); height: calc(740px * var(--k)); overflow: hidden; border-radius: 35px; background: var(--paper); }
.phone--tall .phone__screen { height: calc(1040px * var(--k)); }

/* the receipt: the one illustrated element */
.receipt-wrap {
  flex: none;
  width: 236px;
  transform: rotate(-1.4deg);
  filter: drop-shadow(1px 0 0 var(--line-strong)) drop-shadow(-1px 0 0 var(--line-strong)) drop-shadow(0 -1px 0 var(--line-strong)) drop-shadow(0 1px 0 var(--line-strong));
}
.receipt {
  padding: 22px 20px 38px;
  background: var(--surface);
  font: 400 13px/1.75 var(--font-mono);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 96.429% 100%, 92.857% calc(100% - 9px), 89.286% 100%, 85.714% calc(100% - 9px), 82.143% 100%, 78.571% calc(100% - 9px), 75% 100%, 71.429% calc(100% - 9px), 67.857% 100%, 64.286% calc(100% - 9px), 60.714% 100%, 57.143% calc(100% - 9px), 53.571% 100%, 50% calc(100% - 9px), 46.429% 100%, 42.857% calc(100% - 9px), 39.286% 100%, 35.714% calc(100% - 9px), 32.143% 100%, 28.571% calc(100% - 9px), 25% 100%, 21.429% calc(100% - 9px), 17.857% 100%, 14.286% calc(100% - 9px), 10.714% 100%, 7.143% calc(100% - 9px), 3.571% 100%, 0 calc(100% - 9px));
}
.receipt mark { padding: 0 2px; margin: 0 -2px; background: rgba(224, 122, 63, 0.22); color: inherit; }
.r-vendor { margin-bottom: 8px; font-weight: 700; }
.r-row { display: flex; justify-content: space-between; gap: 12px; }
.r-rule { margin: 10px 0; border-top: 1px dashed var(--line-strong); }
.r-item { overflow-wrap: anywhere; }
.r-total { margin-top: 2px; font-weight: 700; }
.r-bars { width: 100%; height: 34px; margin-top: 20px; color: var(--ink); opacity: 0.8; }

/* ---------- data (05) ---------- */

.formats { list-style: none; margin: 0; padding: 0; }
.formats li { padding: 20px 0; border-top: 1px solid var(--line-strong); font: 450 clamp(1.3rem, 2.4vw, 1.75rem) / 1.25 var(--font-display); letter-spacing: -0.01em; }
.formats li:last-child { border-bottom: 1px solid var(--line-strong); }

/* ---------- privacy band ---------- */

.band { padding-block: clamp(64px, 10vw, 128px); background: var(--petrol-deep); color: var(--paper); }
.band__title { margin-bottom: 56px; font: 450 clamp(2.2rem, 5.4vw, 4.4rem) / 1.05 var(--font-display); letter-spacing: -0.02em; }
.band__line { display: block; }
.facts { display: grid; gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.facts li { max-width: 22rem; padding-top: 16px; border-top: 1px solid rgba(250, 248, 245, 0.3); color: rgba(250, 248, 245, 0.9); }
.band__link { margin-top: 44px; }
.band__link a { color: var(--paper); font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em; }
.band__link a:hover { color: var(--petrol-mist); }

/* ---------- pricing, screenshots, questions ---------- */

.plans { width: 100%; border-collapse: collapse; }
.plans tr { border-top: 1px solid var(--line-strong); }
.plans tr:last-child { border-bottom: 1px solid var(--line-strong); }
.plans th, .plans td { display: block; text-align: left; vertical-align: top; }
.plans th { padding-top: 22px; font: 450 1.6rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.plans td { padding-block: 6px 22px; max-width: 34rem; text-wrap: pretty; }
.note { max-width: 34rem; margin-top: 20px; font-size: 0.92rem; color: var(--ink-2); }

.strip { display: flex; gap: 16px; margin-top: 32px; padding-bottom: 16px; overflow-x: auto; }
.strip img { flex: none; width: auto; height: min(560px, 80vh); border: 1px solid var(--line-strong); border-radius: 18px; }

.faq__list { margin-top: 8px; }
details { border-top: 1px solid var(--line-strong); }
details:last-child { border-bottom: 1px solid var(--line-strong); }
summary { position: relative; padding: 20px 40px 20px 0; list-style: none; cursor: pointer; font: 450 1.3rem/1.3 var(--font-display); letter-spacing: -0.005em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 1.5rem/1 var(--font-text); color: var(--petrol); }
details[open] summary::after { content: "\2212"; }
details p { max-width: 34rem; padding: 0 40px 22px 0; }

/* ---------- legal pages and 404 ---------- */

.legal { padding-block: clamp(36px, 6vw, 80px) clamp(64px, 9vw, 120px); }
.legal__head { margin-bottom: 40px; }
.legal h1 { margin: 0; font-size: clamp(2.4rem, 5.4vw, 4rem); }
.legal__meta { margin-bottom: 36px; font-size: 0.92rem; color: var(--ink-2); }
.legal__meta p + p { margin-top: 6px; }
.legal__text { max-width: 38rem; }
.legal__intro { font-size: 1.15rem; }
.legal__text section { margin-top: 44px; }
.legal__text h2 { margin-bottom: 14px; font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.01em; text-wrap: pretty; }
.legal__text p + p, .legal__text p + ul, .legal__text ul + p { margin-top: 12px; }
.legal__text ul { padding-left: 1.2em; }
.legal__text li { margin-top: 0.5em; }

.notfound { padding-block: clamp(48px, 9vw, 120px); }
.notfound__block + .notfound__block { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.notfound h1, .notfound h2 { margin-bottom: 14px; font: 450 clamp(2rem, 5vw, 3.4rem) / 1.08 var(--font-display); letter-spacing: -0.02em; }
.notfound p + p { margin-top: 12px; }

/* ---------- wide screens: the 12-column grid ---------- */

@media (min-width: 860px) {
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .hero .grid { align-items: start; }
  .hero__text { grid-column: 1 / span 7; padding-top: 16px; }
  .hero__shot { grid-column: 9 / -1; justify-self: end; margin-top: 0; }

  .feature .grid { align-items: start; }
  .feature__text { grid-column: 1 / span 5; padding-top: 8px; }
  .feature__fig { grid-column: 7 / -1; margin-top: 0; }
  .feature--wide .feature__text { grid-column: 1 / span 4; }
  .feature--wide .feature__fig { grid-column: 6 / -1; }
  .feature--flip .feature__text { grid-column: 8 / -1; grid-row: 1; }
  .feature--flip .feature__fig { grid-column: 1 / span 6; grid-row: 1; }

  .receipt-wrap { margin-top: 64px; }
  .formats { margin-top: 44px; }

  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .pricing__head, .faq__head { grid-column: 1 / span 4; }
  .pricing__body, .faq__list { grid-column: 6 / -1; margin-top: 0; }
  .plans th, .plans td { display: table-cell; padding-block: 24px; }
  .plans th { width: 36%; padding-right: 24px; }

  .footer { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .footer__brand { grid-column: 1 / span 5; }
  .footer__nav { grid-column: 7 / span 3; }
  .footer__owner { grid-column: 10 / -1; }

  .legal__head { grid-column: 1 / -1; }
  .legal__meta { grid-column: 1 / span 3; margin-bottom: 0; padding-top: 6px; }
  .legal__text { grid-column: 4 / span 8; }
}

/* ---------- the app screens, as drawn by site/src/screens.mjs ---------- */

.app {
  /* colours of the app (src/theme/index.ts, light) that the site palette does not have */
  --a-petrol-soft: #D9E8EC;
  --a-accent-soft: #FBE6D8;
  --a-danger: #C2410C;
  --a-danger-soft: #FDE4D8;
  --a-success: #15803D;
  --a-success-soft: #DCFCE7;

  display: flex;
  flex-direction: column;
  width: 390px;
  height: 740px;
  zoom: var(--k);
  font: 400 16px/22px system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  text-align: left;
}
.phone--tall .app { height: 1040px; }
.a-icon { flex: none; }

.a-nav { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 14px 12px 0; }
.a-nav__side { display: flex; align-items: center; min-width: 36px; }
.a-nav__side--end { justify-content: flex-end; }
.a-nav__back { color: var(--petrol); }
.a-nav__title { flex: 1; margin: 0 8px; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font: 600 17px/22px system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
.a-large { padding: 0 20px; font: 700 34px/41px system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, sans-serif; letter-spacing: 0.3px; }
.a-body { display: flex; flex-direction: column; flex: 1; gap: 24px; min-height: 0; padding: 16px 20px 24px; }

.a-alerts { display: flex; flex-direction: column; gap: 8px; }
.a-notice { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 14px; font-weight: 600; font-size: 13px; line-height: 18px; }
.a-notice .a-icon { margin-top: 1px; }
.a-notice--danger { background: var(--a-danger-soft); color: var(--a-danger); }
.a-notice--warning { background: var(--a-accent-soft); color: var(--terracotta-deep); }

.a-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(28, 26, 23, 0.06), 0 1px 3px rgba(28, 26, 23, 0.05); }
.a-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.a-stat { display: flex; flex: 1 1 45%; flex-direction: column; gap: 4px; padding: 16px; color: var(--petrol); }
.a-stat__value { font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: -0.3px; color: var(--ink); }
.a-stat__label { font-size: 13px; line-height: 18px; color: var(--ink-2); }

.a-block { display: flex; flex-direction: column; gap: 8px; }
.a-head { display: flex; align-items: center; min-height: 28px; padding-inline: 4px; }
.a-over { flex: 1; font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-2); }
.a-action { font-weight: 600; font-size: 13px; line-height: 18px; color: var(--petrol); }
.a-hint { padding-inline: 4px; font-size: 13px; line-height: 18px; color: var(--ink-2); }

.a-list { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(28, 26, 23, 0.06), 0 1px 3px rgba(28, 26, 23, 0.05); }
.a-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; }
.a-row + .a-row::before { content: ""; position: absolute; top: 0; right: 0; left: 60px; height: 1px; background: var(--line); }
.a-tile { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.a-tile--primary { background: var(--a-petrol-soft); color: var(--petrol); }
.a-tile--accent { background: var(--a-accent-soft); color: var(--terracotta-deep); }
.a-tile--danger { background: var(--a-danger-soft); color: var(--a-danger); }
.a-tile--success { background: var(--a-success-soft); color: var(--a-success); }
.a-row__text { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.a-row__title { font-size: 16px; line-height: 22px; }
.a-row__sub { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.a-row__value { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 15px; line-height: 20px; color: var(--ink-2); }
.a-chev { display: flex; flex: none; color: var(--ink-3); }
.a-rowend { display: flex; align-items: center; gap: 8px; }

.a-badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 4px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; font-weight: 600; font-size: 11px; line-height: 14px; }
.a-badge--primary { background: var(--a-petrol-soft); color: var(--petrol); }
.a-badge--success { background: var(--a-success-soft); color: var(--a-success); }

.a-iconbtn { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--a-petrol-soft); color: var(--petrol); }
.a-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding-inline: 16px; border-radius: 14px; text-align: center; font-weight: 600; font-size: 16px; line-height: 22px; }
.a-btn--tonal { background: var(--a-petrol-soft); color: var(--petrol); }
.a-btn--danger-ghost { color: var(--a-danger); }

.a-chat { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; padding: 20px; overflow: hidden; }
.a-bubble { max-width: 88%; padding: 10px 12px; border: 1px solid; border-radius: 20px; }
.a-bubble--me { align-self: flex-end; background: var(--petrol); border-color: var(--petrol); color: var(--surface); }
.a-bubble--bot { align-self: flex-start; background: var(--surface); border-color: var(--line); }
.a-footer { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 22px; }
.a-inputrow { display: flex; align-items: center; gap: 8px; }
.a-input { display: flex; flex: 1; align-items: center; min-height: 50px; padding-inline: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-3); }
.a-send { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--petrol); color: var(--surface); }
.a-disclaimer { text-align: center; font-weight: 600; font-size: 11px; line-height: 14px; color: var(--ink-3); }
