/* Paper-and-ink look: off-white page, near-black text, one muted accent. Mobile first. */
:root {
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #1b1b1a;
  --ink-2: #4a4945;
  --ink-3: #75736d;
  --line: #dedad0;
  --line-2: #c9c4b8;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --accent-soft: #e4ece8;
  --warn-soft: #f6efe0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .01em; color: var(--ink); text-decoration: none; font-size: 18px; }
.logo svg { flex: none; }
.top nav { display: flex; gap: 16px; align-items: center; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top .hide-sm { display: none; }

/* hero */
.hero { display: grid; gap: 28px; padding-top: 18px; padding-bottom: 40px; }
.eyebrow { font-size: 14px; color: var(--ink-3); margin: 0 0 10px; letter-spacing: .02em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.12; margin: 0 0 14px; letter-spacing: -.01em; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 20px; }
.ctas { display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #000; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--card); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: #244a40; }
.btn[disabled] { opacity: .6; cursor: progress; }
.price-tag { font-weight: 700; }
.fine { font-size: 14px; color: var(--ink-3); margin: 10px 0 0; }
.devices-line { font-size: 14px; color: var(--ink-3); margin-top: 18px; }

/* tablet mockups */
.mock { position: relative; height: 420px; max-width: 460px; margin: 0 auto; width: 100%; }
.tablet { position: absolute; background: #e9e7e1; border: 1px solid #cfcac0; border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.tablet img { border-radius: 4px; border: 1px solid #ddd; background: #fff; }
.tablet.a { width: 64%; left: 0; top: 0; transform: rotate(-2deg); }
.tablet.b { width: 58%; right: 0; top: 70px; transform: rotate(2.5deg); }
.tablet .cap { position: absolute; bottom: -26px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--ink-3); }

section { padding: 44px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 0 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.sub { color: var(--ink-2); margin: 0 0 26px; }

.grid { display: grid; gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
section.alt .feature { background: var(--paper); }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }
.feature .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 10px; }

.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { position: relative; padding-left: 46px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps p { margin: 2px 0 0; color: var(--ink-2); font-size: 16px; }

/* pages gallery */
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.gallery figure { flex: 0 0 72%; margin: 0; scroll-snap-align: start; }
.gallery img { border: 1px solid var(--line-2); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.gallery figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

/* forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
form .row { display: grid; gap: 14px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
select, input[type=email], textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: 16px/1.3 var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 9px; }
textarea { min-height: 76px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; color: var(--ink-2); margin: 4px 0 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 12px 0 0; font-size: 15px; }
.msg.err { color: #9b2c1f; }
.done { display: none; }
.done.show { display: block; }
.done h3 { font-size: 20px; }
.done ol { padding-left: 20px; margin: 8px 0 0; color: var(--ink-2); }
.done li { margin: 4px 0; }
.form-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 14px; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }

/* pricing */
.price-card { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.price { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; margin: 8px 0 4px; }
.price small { font: 400 16px var(--font); color: var(--ink-3); }
.ticks { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.notice { background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; color: var(--ink-2); margin-top: 12px; }

/* table */
.devices { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.devices th, .devices td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.devices th { font-size: 13px; color: var(--ink-3); font-weight: 600; background: var(--paper); }
.devices tr:last-child td { border-bottom: 0; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--ink-3); }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--ink-2); margin: 10px 0 0; font-size: 16px; }

/* dialog */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--ink); }
dialog::backdrop { background: rgba(20, 20, 18, .45); }
.dlg { padding: 22px 20px 20px; }
.dlg h2 { font-size: 24px; padding-right: 36px; }
.dlg .x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-3); border-radius: 8px; }
.dlg .x:hover { background: var(--paper); color: var(--ink); }

footer { padding-top: 34px; padding-bottom: 44px; font-size: 14px; color: var(--ink-3); }
footer a { color: var(--ink-2); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }

/* legal pages */
.legal h1 { font-size: 30px; margin-top: 10px; }
.legal h2 { font-size: 21px; margin-top: 28px; }
.legal p, .legal li { color: var(--ink-2); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal td, .legal th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }

@media (min-width: 640px) {
  h1 { font-size: 44px; }
  .ctas { flex-direction: row; flex-wrap: wrap; }
  .grid.c2 { grid-template-columns: 1fr 1fr; }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
  form .row.two { grid-template-columns: 1fr 1fr; }
  .gallery figure { flex-basis: 40%; }
  .top .hide-sm { display: inline; }
  .card, .price-card { padding: 28px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 34px; padding-bottom: 60px; }
  h1 { font-size: 50px; }
  .mock { height: 500px; }
  .gallery { overflow: visible; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
