/* AutoYard landing page (/welcome), round 3. Shared parts are in site-v3.css. */

.tile-ic svg, .role-ic svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 820px; padding-top: 64px; overflow: hidden; }
.hero-glow {
  position: absolute; left: 50%; bottom: -150px; transform: translateX(-50%);
  width: 1200px; max-width: 120vw; height: 480px; border-radius: 50%; filter: blur(90px); opacity: 0.7; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(29, 95, 214, 0.35) 0%, rgba(127, 178, 255, 0.4) 35%, rgba(255, 122, 26, 0.3) 65%, transparent 80%);
}
.hero-wires {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 1440px; height: 820px; pointer-events: none;
}
.hero-wires path { fill: none; stroke: #CBD5E1; stroke-width: 1.2; stroke-dasharray: 3 3; }
.hero-tiles { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 1440px; height: 820px; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.tile {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line); box-shadow: var(--shadow-float); font-size: 13px; font-weight: 600; color: var(--ink);
}
.tile-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--page); color: var(--blue); display: grid; place-items: center; }
.tile-ic.ic-green { color: #2CA01C; } .tile-ic.ic-red { color: #EA4335; } .tile-ic.ic-orange { color: #E8690F; }
.t-l1 { left: 40px; top: 300px; } .t-l2 { left: 30px; top: 410px; } .t-l3 { left: 95px; top: 515px; }
.t-r1 { right: 40px; top: 300px; } .t-r2 { right: 30px; top: 410px; } .t-r3 { right: 95px; top: 515px; }

.hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-text .h-hero { max-width: 1120px; margin: 24px auto 0; }
.hero-sub { max-width: 760px; margin: 28px auto 36px; }

/* ---------- Board window ---------- */
.board-wrap { position: relative; z-index: 2; margin-top: -176px; }
.board {
  margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-big);
  box-shadow: var(--shadow-window); overflow: hidden;
}
.board-chrome { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: #FBFAF8; border-bottom: 1px solid var(--line); }
.board-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #E3DFD8; }
.board-body { display: grid; grid-template-columns: 180px 1fr; min-height: 470px; }
.board-side { display: flex; flex-direction: column; padding: 20px 14px; border-right: 1px solid #ECEEF1; font-size: 13px; color: var(--ink-2); }
.board-side-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); padding: 0 8px 18px; }
.board-side-brand .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.board-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.board-side li { padding: 8px 10px; border-radius: 8px; }
.board-side li.on { background: #EAF1FC; color: var(--blue); font-weight: 600; }
.board-side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-weight: 500; }
.dot-green { width: 8px; height: 8px; border-radius: 50%; background: #22A55A; }
.board-main { background: #F2F4F7; padding: 22px 24px 28px; min-width: 0; }
.board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.board-head strong { font-size: 20px; letter-spacing: -0.02em; }
.board-new { padding: 7px 12px; border-radius: 8px; background: var(--white); border: 1px solid #E2E5EA; color: var(--ink); font-size: 12px; font-weight: 500; }
.board-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.b-col { display: grid; gap: 8px; padding: 10px; background: var(--white); border: 1px solid #E5E7EB; border-radius: 12px; }
.b-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); padding: 2px 2px 4px; }
.b-col-head span { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.b-card { background: var(--white); border: 1px solid #ECEEF1; border-radius: 10px; padding: 11px 12px; }
.b-card b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.b-card i { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.b-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.b-foot em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #F1F2F4; color: var(--ink-2); white-space: nowrap; }
.b-foot .p-blue { background: #E8F0FD; color: var(--blue); }
.b-foot .p-orange { background: #FFF0E4; color: #B5520C; }
.b-foot .p-green { background: #E6F4EB; color: #1B7339; }
.t-green { color: #1B7339; font-weight: 600; }

/* ---------- Works with ---------- */
.works { margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.works-in { display: flex; align-items: center; justify-content: center; gap: 36px; padding-top: 28px; padding-bottom: 28px; }
.works-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.works ul { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.works li { font-size: 16px; font-weight: 500; color: var(--ink-3); }
.works li + li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #DCD6CC; margin: 0 20px; vertical-align: middle; }

/* ---------- How it works ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 72px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step3 h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.step3 .glow-line { margin-bottom: 18px; }
.step3 p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Dark banner ---------- */
.banner {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 240px; padding: 0 64px; border-radius: var(--radius-big); background: var(--dark);
}
.banner-streak {
  position: absolute; right: -100px; top: -150px; width: 750px; height: 540px; filter: blur(60px); opacity: 0.85; pointer-events: none;
  background: conic-gradient(from 220deg at 65% 50%, transparent 0deg, rgba(29, 95, 214, 0.9) 20deg, rgba(127, 178, 255, 0.85) 45deg, rgba(255, 122, 26, 0.85) 75deg, transparent 110deg);
}
.banner-text { position: relative; z-index: 1; max-width: 680px; }
.banner h2 { font-size: 38px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; color: #fff; }
.banner p { margin-top: 14px; font-size: 17px; color: var(--on-dark); }

/* ---------- Role cards ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role {
  display: flex; flex-direction: column; min-height: 230px; padding: 32px;
  background: var(--white); border: 1px solid #E7E3DC; border-radius: var(--radius-card);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.role:hover { border-color: rgba(29, 95, 214, 0.4); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05); transform: translateY(-2px); }
.role-warm:hover { border-color: rgba(255, 122, 26, 0.4); }
.role-ic { width: 32px; height: 32px; border-radius: 9px; background: #EAF1FC; color: var(--blue); display: grid; place-items: center; }
.role-warm .role-ic { background: #FFF0E4; color: #D9600A; }
.role h3 { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.role-promise { margin: 6px 0 22px; font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.role .chips { margin-top: auto; padding-top: 20px; border-top: 1px solid #EFEBE4; }
.chips li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--page); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.chips-center { justify-content: center; margin-top: 22px; }

/* ---------- Connected (dark band) ---------- */
.connect { position: relative; overflow: hidden; background: var(--dark); color: #fff; padding: 88px 0; min-height: 560px; display: flex; align-items: center; }
.connect-glow {
  position: absolute; right: 12%; top: 50%; transform: translateY(-50%); width: 600px; height: 480px; border-radius: 50%;
  filter: blur(80px); opacity: 0.4; pointer-events: none;
  background: radial-gradient(circle, rgba(29, 95, 214, 0.6) 0%, rgba(127, 178, 255, 0.4) 40%, rgba(255, 122, 26, 0.3) 70%, transparent 85%);
}
.connect-in { position: relative; z-index: 1; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.connect-text h2 { color: #fff; }
.connect-text p { margin-top: 22px; max-width: 440px; font-size: 17px; line-height: 1.65; color: var(--on-dark); }
.connect-text .role-link { margin-top: 22px; color: var(--sky); }
.hub { position: relative; width: 100%; max-width: 680px; aspect-ratio: 680 / 440; margin-left: auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lines path { fill: none; stroke: url(#hl); stroke-width: 1.5; opacity: 0.75; }
.hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px;
  background: #1A1A1A; border: 1px solid #2D3139; font-size: 17px; font-weight: 700;
  box-shadow: 0 0 0 6px rgba(29, 95, 214, 0.08), 0 0 60px rgba(29, 95, 214, 0.45);
}
.hub-core .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.hub-tile {
  position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.hub-tile i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.hub-tile small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: #5B6270; }
.hub[data-drag] .hub-tile { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: box-shadow 0.2s ease; }
.hub[data-drag] .hub-tile:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(127, 178, 255, 0.25); }
.hub[data-drag] .hub-tile.is-grabbed { cursor: grabbing; z-index: 3; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(127, 178, 255, 0.45); }
.connect .flow-key .key-try { color: #7D838D; }
.connect .flow-key .key-try::before { display: none; }
.d-in { background: var(--sky); } .d-out { background: var(--orange); }
.connect .flow-key { margin-top: 18px; color: var(--on-dark); }
.connect .key-in::before { background: var(--sky); }
.connect .flow-dot.is-in { color: var(--sky); }
.connect .flow-dot.is-in { box-shadow: 0 0 0 3px rgba(127, 178, 255, 0.2), 0 0 16px 3px rgba(127, 178, 255, 0.7); }
.h1 { left: 17.6%; top: 15.9%; } .h2 { left: 82.4%; top: 15.9%; }
.h3 { left: 11.8%; top: 50%; }   .h4 { left: 88.2%; top: 50%; }
.h5 { left: 17.6%; top: 84.1%; } .h6 { left: 82.4%; top: 84.1%; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1240px) {
  .hero-wires, .hero-tiles { display: none; }
  .hero { height: 760px; }
}
@media (max-width: 1100px) {
  .roles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { height: auto; padding: 48px 0 220px; }
  .hero-sub { margin: 22px auto 30px; }
  .board-wrap { margin-top: -170px; }
  .board-body { grid-template-columns: 1fr; min-height: 0; }
  .board-side { display: none; }
  .board-main { padding: 18px 0 22px 18px; }
  .board-head { padding-right: 18px; }
  .board-cols {
    grid-template-columns: repeat(4, 230px); overflow-x: auto; padding-right: 18px; padding-bottom: 4px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .b-col { scroll-snap-align: start; }
  .works { margin-top: 56px; }
  .works-in { flex-direction: column; gap: 14px; }
  .works ul { justify-content: center; gap: 8px 18px; }
  .works li { font-size: 15px; }
  .works li + li::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .steps3 { grid-template-columns: 1fr; gap: 36px; }
  .banner { padding: 48px 32px; min-height: 0; }
  .banner h2 { font-size: 30px; }
  .banner { padding-bottom: 120px; }
  .banner-streak { right: -420px; top: auto; bottom: -400px; opacity: 0.7; }
  .banner p { color: #D3D7DD; }
  .connect { padding: 72px 0; min-height: 0; }
  .connect-in { grid-template-columns: 1fr; gap: 40px; }
  .hub { margin: 0 auto; }
  .connect-glow { right: -20%; top: 70%; }
}
@media (max-width: 600px) {
  .roles { grid-template-columns: 1fr; }
  .role { min-height: 0; padding: 26px; }
  .hero-sub { font-size: 16px; }
  .hub-tile { padding: 6px 9px; font-size: 11px; gap: 6px; border-radius: 9px; }
  .hub-tile small { font-size: 10px; }
  .hub-core { padding: 10px 14px; font-size: 14px; }
  .hub-core .brand-mark { width: 22px; height: 22px; }
  .h3 { left: 14%; } .h4 { left: 86%; }
}

/* Small phones: the hub tiles show their names only; the paragraph above says what each one sends */
@media (max-width: 480px) {
  .hub-tile small { display: none; }
  .hub-tile { padding: 5px 8px; gap: 5px; font-size: 10.5px; }
  .hub-core { padding: 8px 12px; font-size: 13px; }
  .hub-core .brand-mark { display: none; }
  .hub-tile.h4 > span { white-space: normal; max-width: 52px; line-height: 1.2; }
}

/* Prices block on the landing page sits close to Security */
.prices-section { padding-top: 24px; }
