/*
 * tags: #demolistings #onepage
 * One-page website demos (Oct 18, 2026): the shared layout. Each demo's own stylesheet sets the
 * variables below (colours, fonts, corners, borders) and adds its own touches, in the same way
 * Tools Studio's style looks work (Art Deco, Neo-Brutalism, Nautical).
 */
:root {
  --bg: #fff; --ink: #1a1a1a; --muted: #555; --panel: #f4f4f4; --line: rgba(0,0,0,.14);
  --primary: #222; --on-primary: #fff; --secondary: #888; --on-secondary: #fff;
  --font-display: Georgia, serif; --font-body: system-ui, sans-serif;
  --radius: 10px; --btn-radius: 999px; --card-border: 1px solid var(--line); --card-shadow: none;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--primary); color: var(--on-primary); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.ribbon { background: #111; color: #fff; text-align: center; font: 12.5px/1.5 system-ui, sans-serif; padding: 9px 16px; }
.ribbon a { color: #7fe3ff; font-weight: 700; text-decoration: none; }
.ribbon-back { display: inline-block; margin-right: 10px; padding: 2px 10px; border: 1px solid #fff; border-radius: 999px; white-space: nowrap; color: #fff !important; text-decoration: none; font-weight: 600; }
.ribbon-back:hover, .ribbon-back:focus-visible { background: #fff; color: #111 !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.site-head { border-bottom: var(--head-border, 1px solid var(--line)); background: var(--head-bg, var(--bg)); position: relative; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: var(--logo-spacing, 0); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; background: none; border: var(--card-border); color: inherit; border-radius: var(--btn-radius); min-height: 44px; padding: 0 16px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: var(--card-border); padding: 8px clamp(16px, 4vw, 32px) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; }
}

.btn { display: inline-block; padding: 12px 24px; border-radius: var(--btn-radius); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 2px solid var(--primary); background: var(--primary); color: var(--on-primary); box-shadow: var(--btn-shadow, none); font-family: inherit; }
.btn-line { background: transparent; color: var(--btn-line-color, var(--primary)); border-color: var(--btn-line-color, var(--primary)); }
.btn:hover { filter: brightness(1.08); }
.nav .btn { opacity: 1; text-decoration: none; padding: 9px 18px; font-size: 14px; }

section { padding: clamp(48px, 8vw, 88px) 0; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); font-weight: 700; margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4.5vw, 40px); }
h3 { font-size: 20px; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.center .actions { justify-content: center; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--card-bg, var(--panel)); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 26px; }
.card p { margin: 0; color: var(--muted); }
.card .price { display: block; margin-top: 14px; font-weight: 700; color: var(--ink); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: var(--step-radius, 50%); border: 2px solid var(--secondary); color: var(--secondary); font-weight: 700; font-family: var(--font-display); }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* Forms (demo only: onepage.js stops them sending and says so) */
.form { display: grid; gap: 14px; max-width: 620px; }
.form.center { margin: 0 auto; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select { font: inherit; font-weight: 400; color: var(--ink); background: var(--field-bg, var(--bg)); border: var(--field-border, 1px solid var(--line)); border-radius: var(--field-radius, 8px); padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { margin: 0; padding: 12px 14px; border-radius: var(--field-radius, 8px); background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.inline-form .field { flex: 1 1 240px; }
.inline-form .btn { align-self: end; min-height: 48px; }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.site-foot { border-top: var(--foot-border, 1px solid var(--line)); padding: 40px 0; font-size: 14px; background: var(--foot-bg, var(--bg)); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot nav a { text-decoration: none; opacity: .8; }
.site-foot nav a:hover { opacity: 1; text-decoration: underline; }
.site-foot p { margin: 0; color: var(--muted); }
.credit { flex-basis: 100%; font-size: 12.5px; }
.credit a { font-weight: 700; }

/* Terms, Privacy and 404 */
.page { padding: clamp(40px, 7vw, 72px) 0; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 22px; margin-top: 32px; }
.page p, .page li { color: var(--muted); }
.template-note { border: 1px dashed var(--line); border-radius: var(--field-radius, 8px); padding: 12px 16px; font-size: 13.5px; color: var(--muted); }
.notfound { text-align: center; padding: clamp(64px, 12vw, 120px) 0; }
.notfound .big { font-family: var(--font-display); font-size: clamp(72px, 16vw, 140px); line-height: 1; margin: 0 0 8px; color: var(--secondary); }
.form, .inline-form { text-align: left; }
.inline-form { width: 100%; margin: 0 auto; }
