/* ============================================================
   Doggy Dashboard — marketing site styles
   ============================================================ */
:root {
  --brand: #3b4ce0;
  --brand-dark: #2c39b8;
  --brand-soft: #eef0fe;
  --accent: #ff8a3d;
  --ink: #1f2430;
  --ink-soft: #5a6273;
  --muted: #8a90a2;
  --line: #e4e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --bg-dark: #141a2e;
  --green: #21c07a;
  --amber: #ffb020;
  --blue: #3b82f6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 26, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 26, 46, 0.16);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .7em 1.3em; border-radius: 999px; font-weight: 600;
  font-size: .98rem; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(59,76,224,.28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-nav { background: var(--brand); color: #fff; padding: .5em 1.1em; }
.btn-nav:hover { background: var(--brand-dark); }
.btn-block { width: 100%; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20,26,46,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand strong { color: var(--brand); font-weight: 800; }
.brand-mark { flex: none; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--ink-soft); font-weight: 500; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.site-nav a.btn-nav { color: #fff; }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 18px; }
.flash {
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 10px;
  font-weight: 500; border: 1px solid transparent; transition: opacity .35s ease, transform .35s ease;
}
.flash-success { background: #e7f9f0; color: #0f7a4d; border-color: #bdeed7; }
.flash-error { background: #fdeaea; color: #b4272b; border-color: #f6c9ca; }
.flash-hide { opacity: 0; transform: translateY(-6px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 92px) 0; background:
  radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%),
  linear-gradient(180deg, #fff, var(--bg-alt)); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  padding: .35em .8em; border-radius: 999px; margin-bottom: 1rem;
}
.hero-copy .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.6rem 0 1.3rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.hero-badges li {
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); padding: .35em .85em; border-radius: 999px;
}

/* Hero mock dashboard */
.hero-panel { display: flex; justify-content: center; }
.mock-window {
  width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(.6deg);
}
.mock-bar { display: flex; gap: 7px; padding: 14px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d3d8e4; }
.mock-bar span:first-child { background: #ff6058; }
.mock-bar span:nth-child(2) { background: #ffbd2e; }
.mock-bar span:nth-child(3) { background: #28c940; }
.mock-body { padding: 18px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-head span:first-child { font-weight: 700; }
.mock-pill { font-size: .78rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: .25em .7em; border-radius: 999px; }
.mock-line {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 8px;
  background: var(--bg-alt); border-radius: 10px; font-size: .92rem; font-weight: 500;
}
.mock-line .mock-time { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-blue { background: var(--blue); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mock-stat { background: var(--brand); color: #fff; border-radius: 10px; padding: 12px; text-align: center; }
.mock-stat strong { display: block; font-size: 1.3rem; }
.mock-stat span { font-size: .72rem; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft);
  margin-bottom: 16px; position: relative;
}
.feature-icon::after {
  content: ""; position: absolute; inset: 0; background: var(--brand);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 24px; mask-size: 24px;
}
.icon-scissors::after { -webkit-mask-image: url("../img/icons.svg#scissors"); mask-image: url("../img/icons.svg#scissors"); }
.feature-blurb { color: var(--ink-soft); }
.feature-points { list-style: none; padding: 0; margin: 14px 0 0; }
.feature-points li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--ink-soft); font-size: .95rem; }
.feature-points li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--green);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px rgba(33,192,122,.3);
}
.feature-points li::after {
  content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 3.5px;
  border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg);
}
/* Simple tinted glyphs per feature (CSS-only, no external assets needed) */
.feature-icon { display: grid; place-items: center; }
.feature-icon::before {
  font-size: 22px; line-height: 1;
}
.icon-scissors::before { content: "✂"; }
.icon-home::before { content: "🏠"; }
.icon-shield::before { content: "🛡"; }
.icon-users::before { content: "👥"; }
.icon-bell::before { content: "🔔"; }
.icon-phone::before { content: "📱"; }
.feature-icon::after { display: none; } /* prefer emoji glyphs; keep markup simple */

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.price-featured { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: .35em .9em; border-radius: 999px;
}
.price-tag { font-size: 2.6rem; font-weight: 800; margin: .2rem 0 .1rem; letter-spacing: -0.03em; }
.price-currency { font-size: 1.4rem; vertical-align: super; margin-right: 2px; }
.price-per { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-tagline { color: var(--ink-soft); margin-bottom: 18px; }
.price-includes { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.price-includes li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: .95rem; }
.price-includes li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800;
}
.price-breakdown { font-size: .82rem; color: var(--muted); margin: 0 0 18px; }

.addon-box {
  margin-top: 36px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.addon-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; }
.addon-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.addon-list strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq-list summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--ink-soft); margin: 0 0 14px; }

/* ---------- Contact form ---------- */
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,76,224,.15);
}
.field textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; margin: 12px 0 0; }
.form-status {
  padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
}
.form-status-success {
  background: #e7f9f0; color: #0f7a4d; border-color: #bdeed7;
}
.form-status-success::before { content: "✓ "; }
.form-status-error {
  background: #fdeaea; color: #b4272b; border-color: #f6c9ca;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #c7ccdb; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer strong { color: #fff; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer a { display: block; color: #c7ccdb; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8a90a2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { order: -1; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-nav { gap: 1rem; }
  .site-nav a:not(.btn-nav) { display: none; }
  .feature-grid, .pricing-grid, .form-row, .addon-list { grid-template-columns: 1fr; }
  .price-featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
