/*
 * AutoYard public website, round 3 (Lovable-style look, approved 2026-11-26/27).
 * Shared by every public page: colours, type, top bar, buttons, dark closing band, footer.
 * Page-only styles live in their own file (landing.css, ...).
 * Designs: docs/design/public-pages-round-3/ (pictures + Stitch code).
 */

:root {
  --page: #FAF8F5;          /* warm off-white page */
  --card: #F3F0EB;          /* beige card */
  --white: #FFFFFF;
  --line: #E7E2DA;          /* thin borders */
  --line-btn: #E2DDD4;
  --ink: #15171A;           /* near-black text and buttons */
  --ink-2: #4A4F57;         /* body text */
  --ink-3: #5F6670;         /* quiet text (a touch darker than the design's #6B7280 for contrast) */
  --dark: #141414;          /* dark bands */
  --on-dark: #A3A9B2;       /* body text on dark */
  --blue: #1D5FD6;          /* app blue */
  --sky: #7FB2FF;
  --orange: #FF7A1A;        /* safety orange */
  --green: #1E8E3E;

  --wrap: 1180px;
  --gutter: 48px;
  --radius-card: 16px;
  --radius-big: 20px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-window: 0 24px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
.h-hero { font-size: clamp(44px, 6.2vw, 88px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; }
.h-section { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; }
.lead { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.quiet { color: var(--ink-3); }

.pill-tag {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; font-weight: 500;
}

.glow-line { height: 2px; background: linear-gradient(90deg, var(--blue) 0%, var(--sky) 50%, var(--orange) 100%); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.btn-dark:hover { background: #000; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line-btn); box-shadow: var(--shadow-card); }
.btn-light:hover { background: var(--card); }
.btn-lg { padding: 16px 32px; font-size: 16px; font-weight: 600; }
.btn-block { width: 100%; padding-top: 12px; padding-bottom: 12px; font-weight: 600; }
/* Buttons on the dark band */
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: var(--card); }
.btn-ghost-dark { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Logo ---------- */
/* The AutoYard mark (Road Y, Plan 33; drawn first as D Hub in Plan 28).
   The tile is drawn here; the mark is one picture that fills it, so every size matches the drawing.
   Corners are 27% of the tile, as in public/brand/yardline-mark.svg. */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--blue);
  display: grid; place-items: center; box-shadow: var(--shadow-card); flex: none;
}
.brand-mark::after { content: ''; width: 100%; height: 100%; background: url(/brand/mark-on-blue.svg) center / 100% 100% no-repeat; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
/* The name AutoYard (Plan 33): Auto in navy, Yard in blue; on the dark footer the lighter pair. */
.brand-name { color: #0E1B33; }
.brand-yard { color: #1D5FD6; }
.footer .brand-name { color: #E8EEF8; }
.footer .brand-yard { color: #5B8DEF; }

/* ---------- Top bar (stays on screen) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(231, 226, 218, 0.7);
}
.topbar-in { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-left { display: flex; align-items: center; gap: 40px; }
.topnav { display: flex; align-items: center; gap: 32px; }
.topnav a { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color var(--fast) var(--ease); }
.topnav a:hover, .topnav a[aria-current='page'] { color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* Phone menu: a plain <details>, works without JavaScript */
.menu { display: none; position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-btn); background: var(--white);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); content: ''; position: relative;
}
.menu-icon::before { position: absolute; top: -5px; }
.menu-icon::after { position: absolute; top: 5px; }
.menu-panel {
  position: absolute; right: 0; top: 52px; min-width: 220px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-window);
  display: grid;
}
.menu-panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--ink); }
.menu-panel a:hover { background: var(--page); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-panel { max-height: calc(100vh - 96px); overflow-y: auto; }
.menu-label { margin: 10px 14px 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.menu-panel .menu-sub { padding: 9px 14px 9px 24px; font-size: 15px; }
.menu-panel a[aria-current='page'] { background: var(--page); font-weight: 600; }

/* Product drop-down in the top bar: a plain <details>, works without JavaScript */
.drop { position: relative; }
.drop > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color var(--fast) var(--ease);
}
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after {
  content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--fast) var(--ease);
}
.drop[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.drop > summary:hover, .drop[open] > summary, .drop.is-here > summary { color: var(--ink); }
.drop-panel {
  position: absolute; left: -24px; top: calc(100% + 22px); width: 560px; padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-window);
}
.drop-panel a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; text-decoration: none; }
.drop-panel a b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.drop-panel a span { font-size: 13px; color: var(--ink-3); }
.drop-panel a:hover, .drop-panel a[aria-current='page'] { background: var(--page); }
.drop-foot { grid-column: 1 / -1; display: flex; gap: 24px; margin-top: 6px; padding: 12px 14px 4px; border-top: 1px solid var(--line); }
.drop-panel .drop-foot a { display: inline; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.drop-panel .drop-foot a::after { content: ' \2192'; }
.drop-panel .drop-foot a:hover { background: none; color: var(--blue); }

/* Home: each "Made for everyone" card links to its page */
.role-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.role-link::after { content: ' \2192'; }
.role-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

/* ---------- Dark closing band (same on every page) ---------- */
.closing {
  position: relative; overflow: hidden; background: var(--dark); color: #fff; text-align: center;
  padding: 128px 0 120px;
}
.closing::before, .closing::after {
  content: ''; position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px);
}
.closing::before { left: -120px; bottom: -220px; width: 620px; height: 520px; background: radial-gradient(circle, rgba(255, 122, 26, 0.42), transparent 70%); }
.closing::after { right: -140px; top: 40px; width: 640px; height: 560px; background: radial-gradient(circle, rgba(29, 95, 214, 0.5), rgba(127, 178, 255, 0.12) 55%, transparent 72%); }
.closing .wrap { position: relative; z-index: 1; }
.closing h2 { max-width: 940px; margin: 0 auto 36px; color: #fff; }
.closing .btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer (same on every page) ---------- */
.footer { background: var(--dark); color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, 0.07); }
.footer-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; padding: 64px 0 56px; }
.footer .brand { color: #fff; }
.footer-cols { display: flex; gap: 96px; }
.footer-col h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8F96A0; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #C4C8CE; text-decoration: none; font-size: 15px; transition: color var(--fast) var(--ease); }
.footer-col a:hover, .footer-col a[aria-current='page'] { color: #fff; }
.footer-col a[aria-current='page'] { font-weight: 600; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 24px 0 40px; font-size: 13px; color: #8F96A0; }

/* ---------- Section heads ---------- */
.center-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.center-head .lead { margin-top: 18px; }

/* ---------- Security ---------- */
.safe4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.safe { padding: 0 32px; border-left: 1px solid var(--line); }
.safe:first-child { padding-left: 0; border-left: 0; }
.safe-ic { width: 36px; height: 36px; border-radius: 10px; background: #EAF1FC; color: var(--blue); display: grid; place-items: center; }
.safe-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.safe-warm .safe-ic { background: #FFF0E4; color: #D9600A; }
.safe h3 { margin: 20px 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.safe p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.safe-line { margin-top: 72px; }

/* ---------- Prices ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { padding: 32px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); }
.plan-main {
  border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--blue), var(--sky), var(--orange)) border-box;
  box-shadow: 0 18px 44px rgba(29, 95, 214, 0.1);
}
.plan-name { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.plan-price strong { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.plan-price span { font-size: 16px; font-weight: 500; color: var(--ink-3); }
.plan-people { margin: 6px 0 28px; font-size: 14px; font-weight: 600; color: var(--blue); }
.ticks { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(231, 226, 218, 0.9); display: grid; gap: 13px; }
.ticks li {
  position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5FD6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") left 3px / 16px 16px no-repeat;
}
.fine { margin-top: 32px; text-align: center; font-size: 14px; color: var(--ink-3); }

/* ---------- Inner page heading (Prices, Security, Privacy...) ---------- */
.page-hero { position: relative; padding: 72px 0 64px; text-align: center; }
.page-hero::before {
  content: ''; position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  width: 980px; max-width: 100vw; height: 560px; pointer-events: none; filter: blur(40px); z-index: -1;
  background: radial-gradient(ellipse at 42% 50%, rgba(29, 95, 214, 0.13), transparent 62%),
              radial-gradient(ellipse at 66% 55%, rgba(255, 122, 26, 0.08), transparent 60%);
}
.page-hero .wrap { position: relative; }
.pill-caps { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 600; background: #EAF1FC; border-color: #D3E2F8; color: var(--blue); }
.h-page { max-width: 860px; margin: 22px auto 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 700; }
.page-hero .lead { max-width: 620px; margin: 22px auto 0; font-size: 18px; }
.text-link { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.text-link:hover { color: var(--blue); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
  .safe4 { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .safe, .safe:first-child { padding: 0 24px 0 0; border-left: 0; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .center-head { margin-bottom: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .page-hero { padding: 56px 0 48px; }
  .topnav, .topbar-right .btn-light { display: none; }
  .menu { display: block; }
  .topbar-in { height: 72px; }
  html { scroll-padding-top: 88px; }
  .section { padding: 72px 0; }
  .closing { padding: 96px 0 88px; }
  .footer-in { flex-direction: column; }
  .footer-cols { gap: 56px; }
}
@media (max-width: 600px) {
  .safe4 { grid-template-columns: 1fr; }
  .plan { padding: 26px; }
}
@media (max-width: 480px) {
  .topbar-right .btn-dark { padding: 9px 14px; font-size: 13px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
}
@media (max-width: 360px) {
  /* The smallest phones: keep the menu button on the screen. */
  :root { --gutter: 16px; }
  .topbar-right, .brand { gap: 8px; }
  .topbar-right .btn-dark { padding: 8px 12px; }
  .brand-name { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Hub pictures: light that runs along each line (hub-flow.js) ---------- */
.hub-core, .hub-tile, .hub-node { z-index: 2; }
.flow-dot {
  position: absolute; left: -5px; top: -5px; z-index: 1; width: 10px; height: 10px; border-radius: 50%;
  background: currentColor; opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.flow-dot::after {
  content: ''; position: absolute; right: 50%; top: 50%; width: 44px; height: 3px; margin-top: -1.5px;
  border-radius: 2px; background: linear-gradient(90deg, transparent, currentColor);
}
.flow-dot.is-in { color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 95, 214, 0.16), 0 0 14px 2px rgba(29, 95, 214, 0.55); }
.flow-dot.is-out { color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18), 0 0 14px 2px rgba(255, 122, 26, 0.6); }
.hub-core.is-hit::after {
  content: ''; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--sky);
  pointer-events: none; animation: core-hit 0.6s ease-out both;
}
@keyframes core-hit { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.12); } }
.flow-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-size: 13.5px; color: var(--ink-3); }
.flow-key span { display: inline-flex; align-items: center; gap: 8px; }
.flow-key span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.key-in::before { background: var(--blue); }
.key-out::before { background: var(--orange); }

