/* ═══════════════════════════════════════════
   www.pinroster.com — the marketing site's theme.
   Same palette as the app (dark first, cyan + amber; app.pinroster.com resources/css/app.css)
   and the Deep Water site's layered dark look. Native fonts only: the site loads nothing from
   third parties. Phone first; wider layouts from 720px / 960px.
═══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:       #0b0f15;
  --bg-2:     #10161f;
  --panel:    #151d29;
  --border:   #233044;
  --cyan:     #00bcd4;
  --cyan-2:   #0097a7;
  --amber:    #f5a623;
  --red:      #ff3d3d;
  --text:     #d9e4f2;
  --muted:    #8ea3bd;
  --white:    #f4f8ff;
  --radius:   12px;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: 'Arial Black', 'Segoe UI Black', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, rgba(0, 188, 212, .09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 60%, rgba(245, 166, 35, .05) 0%, transparent 60%);
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--cyan); color: var(--bg); padding: 8px 12px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ── TYPE ── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: 16px; }
h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
.accent { color: var(--cyan); }
.eyebrow {
  color: var(--amber);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.lead { font-size: 1.15rem; color: var(--text); margin: 20px 0 28px; max-width: 34em; }
.section-lead { color: var(--muted); max-width: 40em; margin-bottom: 28px; }
.fine-print { color: var(--muted); font-size: .88rem; margin-top: 16px; }

/* ── BUTTONS ── (≥44px tap targets) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--cyan); color: var(--bg); }
.btn-primary:hover { background: var(--white); color: var(--bg); }
.btn-outline { border-color: var(--border); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-small { min-height: 40px; padding: 0 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 21, .92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--white); }
.brand-accent { color: var(--cyan); }

.nav-toggle {
  width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 10px;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 13px; width: 20px; height: 2px; background: var(--white); content: '';
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 64px;
  flex-direction: column; gap: 4px;
  padding: 12px 16px 20px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.site-nav.open { display: flex; }
.site-nav a:not(.btn) {
  color: var(--text); text-decoration: none; font-weight: 600;
  padding: 12px 4px; border-bottom: 1px solid var(--border);
}
.site-nav a:not(.btn):hover { color: var(--cyan); }
.site-nav .btn { margin-top: 12px; }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 24px;
    padding: 0; background: none; border: 0;
  }
  .site-nav a:not(.btn) { border: 0; padding: 8px 0; }
  .site-nav .btn { margin-top: 0; }
}

/* ── SECTIONS ── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.hero { padding: 48px 0 56px; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-note { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.hero-art { justify-self: center; max-width: 240px; }
@media (min-width: 960px) {
  .hero { padding: 88px 0; }
  .hero-inner { grid-template-columns: 1.3fr 1fr; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-art { max-width: 360px; }
}

.card-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; border-top: 3px solid var(--cyan);
}
.card p { color: var(--muted); font-size: .95rem; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 20px 72px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber); color: var(--bg); font-weight: 900;
}
.steps p { color: var(--muted); font-size: .95rem; }

/* ── PRICING ── */
.price-grid { display: grid; gap: 16px; max-width: 720px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.price-card-featured { border: 2px solid var(--cyan); }
.price { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; color: var(--white); margin: 4px 0 8px; }
.price span { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--muted); margin-left: 6px; }
.price-card p:last-child { color: var(--muted); }

/* ── FAQ ── */
.faq { display: grid; gap: 8px; margin-top: 20px; }
.faq details {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 18px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--white);
  min-height: 52px; display: flex; align-items: center; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; padding-left: 12px; color: var(--cyan); font-size: 1.3rem; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* ── CONTACT FORM ── */
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 720px) { .form-row { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--white); font-size: .92rem; }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan); outline: none; }
.contact-form .btn { justify-self: start; min-width: 160px; }
.contact-form .g-recaptcha { min-height: 78px; }
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--cyan); }
.form-status.error { color: var(--red); }

/* ── LEGAL PAGES ── */
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.legal h3 { margin: 20px 0 6px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; background: var(--bg); }
.footer-inner { display: grid; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--text); text-decoration: none; padding: 8px 0; }
.footer-nav a:hover { color: var(--cyan); }
.footer-copy { color: var(--muted); font-size: .85rem; }
