:root {
  --app: #F7F6F2; --card: #FFFFFF; --ink: #26332F; --ink-2: #66716C; --hair: #ECEAE4;
  --forest: #3F5D53; --forest-2: #557468; --sage: #8BA598; --sand: #D9C2A3; --sand-soft: #F3EADC;
  --mist: #E4EBEA; --ok: #6E9C7A;
  --shadow: 0 1px 2px rgba(38,51,47,.05), 0 8px 24px rgba(38,51,47,.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--app); color: var(--ink); font: 17px/1.55 var(--font); }
a { color: var(--forest); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
header.site { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--forest); position: relative; flex: none; }
.mark::before { content: ""; position: absolute; left: 10px; top: 8px; width: 4px; height: 16px; border-radius: 2px; background: var(--sand); }
.mark::after { content: ""; position: absolute; left: 10px; top: 20px; width: 13px; height: 4px; border-radius: 2px; background: var(--sand); }
nav.top a { color: var(--ink-2); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav.top a:hover, nav.top a[aria-current] { color: var(--ink); }

/* Homepage hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 20px; font-weight: 700; max-width: 13ch; }
.hero p { color: var(--ink-2); font-size: 19px; margin: 0 0 28px; max-width: 34ch; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--forest);
       color: #fff; text-decoration: none; font-weight: 600; }
.btn:hover { background: #36524A; }
.hero .sub { display: block; margin-top: 14px; font-size: 15px; color: var(--ink-2); }

/* Phone + sheet illustration */
.scene { position: relative; height: 430px; }
.sheet { position: absolute; right: 0; top: 40px; left: 176px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.sheet .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--hair); font-size: 14px; font-weight: 600; }
.sheet .bar i { width: 16px; height: 20px; border-radius: 3px; background: var(--ok); position: relative; }
.sheet .bar i::after { content: ""; position: absolute; inset: 7px 3px 4px; border: 1.5px solid #fff; border-width: 1.5px 0; }
.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid th, .grid td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.grid th { color: var(--ink-2); font-weight: 600; background: #FBFAF7; }
.grid td.n { text-align: right; font-variant-numeric: tabular-nums; }
.grid th.n { text-align: right; }
.grid tr.new td { background: var(--sand-soft); }
.sheet .bar, .grid th:first-child, .grid td:first-child { padding-left: 50px; }
.phone { position: absolute; left: 0; top: 0; width: 210px; height: 420px; border-radius: 34px; background: var(--ink); padding: 9px; box-shadow: 0 18px 40px rgba(38,51,47,.22); }
.screen { height: 100%; border-radius: 26px; background: var(--app); padding: 34px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.pill { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); background: var(--card); border-radius: 999px; padding: 4px 10px; box-shadow: var(--shadow); }
.pill b { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.amt { text-align: center; font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 2px; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cat { background: #E6EEE7; border-radius: 12px; padding: 8px 4px; text-align: center; font-size: 10px; color: var(--ink); }
.cat i { display: block; width: 22px; height: 22px; border-radius: 50%; background: #6E9C7A; margin: 0 auto 4px; }
.cat.c2 { background: #F6E8DA; } .cat.c2 i { background: #D49A62; }
.cat.c3 { background: #E3EBEF; } .cat.c3 i { background: #6F93A6; }
.cat.sel { outline: 2px solid var(--forest); }
.field { background: var(--card); border-radius: 10px; padding: 7px 10px; font-size: 11px; display: flex; justify-content: space-between; }
.field span { color: var(--ink-2); }
.save { margin-top: auto; background: var(--forest); color: #fff; text-align: center; border-radius: 14px; padding: 11px; font-size: 14px; font-weight: 600; }
.toast { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .grid tr.new td { animation: land 1.2s .9s both ease-out; }
  .toast { animation: pop 2.4s .4s both; }
  @keyframes land { from { background: transparent; color: transparent; } 40% { background: var(--sand); color: var(--ink); } to { background: var(--sand-soft); } }
  @keyframes pop { 0% { opacity: 0; transform: translate(-50%, 6px); } 12%, 70% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
}

/* Homepage sections */
section.block { padding: 64px 0; border-top: 1px solid var(--hair); }
section.block h2 { font-size: 28px; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 12px; }
section.block > .wrap > p.lead { color: var(--ink-2); max-width: 58ch; margin: 0 0 32px; }

.product { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center; background: var(--card); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); max-width: 720px; }
.product img { width: 112px; height: 112px; border-radius: 26px; }
.product h3 { margin: 0 0 4px; font-size: 21px; }
.product p { margin: 0 0 14px; color: var(--ink-2); }
.product .links a { margin-right: 18px; font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts h3 { font-size: 18px; margin: 0 0 6px; }
.facts p { margin: 0; color: var(--ink-2); font-size: 16px; }
.facts .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; margin-bottom: 14px; }
.facts svg { width: 20px; height: 20px; stroke: var(--forest); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.google { margin-top: 40px; background: var(--sand-soft); border-radius: 18px; padding: 22px 24px; max-width: 760px; }
.google h3 { margin: 0 0 8px; font-size: 18px; }
.google q { font-style: italic; }
.google p { margin: 0 0 8px; }
.google p:last-child { margin: 0; }

footer.site { border-top: 1px solid var(--hair); padding: 28px 0 40px; color: var(--ink-2); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer.site nav a { color: var(--ink-2); margin-right: 20px; white-space: nowrap; display: inline-block; margin-bottom: 6px; }

/* Privacy policy and terms */
.doc { max-width: 680px; margin: 0 auto; padding: 24px 24px 72px; }
.doc h1 { font-size: 36px; letter-spacing: -.02em; line-height: 1.15; margin: 24px 0 6px; }
.doc .date { color: var(--ink-2); margin: 0 0 28px; font-size: 15px; }
.doc .short { background: var(--card); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 36px; }
.doc .short h2 { margin-top: 0; }
.doc .short ul { margin-bottom: 0; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; letter-spacing: -.01em; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .path { background: var(--mist); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 24px 0 56px; }
  .scene { height: 400px; max-width: 460px; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .wrap, .doc { padding-left: 16px; padding-right: 16px; }
  nav.top a { margin-left: 14px; }
  .scene { height: 400px; }
  .phone { width: 190px; height: 380px; }
  .sheet { z-index: 2; left: 64px; top: 228px; }
  .sheet .bar, .grid th:first-child, .grid td:first-child { padding-left: 14px; }
  .product { grid-template-columns: 1fr; }
  .doc h1 { font-size: 30px; }
}
