/* TheSDHomeSeller.com — shared styles
   Design language: PlayStation-inspired (SST-light quiet headlines, cobalt-blue anchor,
   three-surface rhythm: black hero → white content → blue footer).
   Typography: Helvetica Neue stack standing in for Sony's proprietary SST. */

:root {
  --ps-blue: #0070cc;
  --ps-blue-dark: #0068bd;
  --ps-cyan: #1eaedb;
  --ps-link-hover: #1883fd;
  --ps-link-on-dark: #53b1ff;

  --ink: #000000;
  --ink-deep: #1f1f1f;
  --ink-body: #6b6b6b;
  --ink-mute: #cccccc;
  --ink-placeholder: rgba(0, 0, 0, 0.6);

  --paper: #ffffff;
  --ice: #f5f7fa;
  --divider: #f3f3f3;
  --console: #000000;
  --shadow-black: #121314;

  --accent-commerce: #d53b00;
  --warning: #c81b3a;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;

  --radius-input: 3px;
  --radius-btn-sm: 6px;
  --radius-media: 12px;
  --radius-feature: 19px;
  --radius-hero: 24px;
  --radius-pill: 999px;

  --shadow-feather: 0 5px 9px 0 rgba(0, 0, 0, 0.06);
  --shadow-tile: 0 5px 9px 0 rgba(0, 0, 0, 0.08);
  --shadow-emphasis: 0 5px 9px 0 rgba(0, 0, 0, 0.16);
  --shadow-hero: 0 5px 9px 0 rgba(0, 0, 0, 0.8);

  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* ───────── Global overflow safety ───────── */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink-deep);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ps-blue-dark); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--ps-link-hover); }

/* ───────── Typography ───────── */
.display-xl { font-size: 54px; font-weight: 300; line-height: 1.25; letter-spacing: -0.1px; }
.display-l  { font-size: 44px; font-weight: 300; line-height: 1.25; letter-spacing: 0.1px; }
.display-m  { font-size: 35px; font-weight: 300; line-height: 1.25; }
.display-s  { font-size: 28px; font-weight: 300; line-height: 1.25; letter-spacing: 0.1px; }
.display-xs { font-size: 22px; font-weight: 300; line-height: 1.25; letter-spacing: 0.1px; }
.ui-head-s  { font-size: 18px; font-weight: 600; line-height: 1.0; }
.body       { font-size: 18px; font-weight: 400; line-height: 1.5; letter-spacing: 0.1px; }
.caption    { font-size: 14px; font-weight: 500; line-height: 1.5; }
.caption-body { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink-body); }
.micro      { font-size: 12px; font-weight: 500; line-height: 1.5; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 300; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-size: 18px; font-weight: 500; letter-spacing: 0.4px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: 0; cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease, border-color 180ms ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--ps-blue); color: #fff;
  border: 2px solid transparent;
}
.btn-primary:hover {
  background: var(--ps-cyan); color: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--ps-blue);
  transform: scale(1.05);
}
.btn-primary:active { opacity: 0.6; }
.btn-primary:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--ps-blue);
}

.btn-secondary {
  background: #fff; color: var(--ps-blue-dark);
  border: 2px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ps-cyan); color: #fff; border-color: #fff;
  box-shadow: 0 0 0 2px var(--ps-blue);
  transform: scale(1.05);
}

.btn-ghost {
  background: transparent; color: var(--ink-deep);
  border: 1px solid #dedede;
  padding: 10px 18px; font-size: 16px;
}
.btn-ghost:hover {
  background: var(--ps-cyan); color: #fff; border-color: #fff;
  box-shadow: 0 0 0 2px var(--ps-blue);
  transform: scale(1.05);
}

.btn-ghost-dark {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35);
  padding: 12px 22px; font-size: 16px;
}
.btn-ghost-dark:hover {
  background: var(--ps-cyan); color: #fff; border-color: #fff;
  box-shadow: 0 0 0 2px var(--ps-blue);
  transform: scale(1.05);
}

.btn-sm { font-size: 14px; font-weight: 700; letter-spacing: 0.324px; padding: 10px 20px; }

/* ───────── Layout ───────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.surface-dark {
  background: linear-gradient(180deg, var(--shadow-black), var(--console));
  color: #fff;
}
.surface-dark h1, .surface-dark h2, .surface-dark h3 { color: #fff; }
.surface-light {
  background: #ffffff;
  color: var(--ink-deep);
}

/* ───────── Top nav ───────── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--console); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topnav-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 16px 32px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; font-weight: 500; font-size: 16px; letter-spacing: 0.2px;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 240px;
}
.brand-logo-footer {
  height: 44px;
  max-width: 280px;
  margin-bottom: 20px;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--ps-blue);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px;
  letter-spacing: 0.3px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text span:first-child { font-weight: 300; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #8a8a8a; }
.brand-text span:last-child { font-weight: 500; font-size: 15px; color: #fff; }

.navlinks { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.navlink {
  color: #fff; font-size: 14px; font-weight: 500; letter-spacing: 0.2px;
  padding: 8px 0; position: relative;
  transition: color 180ms ease;
}
.navlink:hover { color: var(--ps-link-hover); }
.navlink.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--ps-blue);
}
.nav-cta { margin-left: 12px; }

/* ───────── Mobile hamburger + drawer ───────── */
.nav-burger {
  display: none; /* shown on mobile via the 960px media query */
  margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  color: #fff;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-burger:hover { background: rgba(255,255,255,0.08); }
.nav-burger:focus-visible { outline: 2px solid var(--ps-blue); outline-offset: 2px; }
.nav-burger svg { width: 24px; height: 24px; }
.nav-burger .ic-close { display: none; }
.nav-burger[aria-expanded="true"] .ic-open { display: none; }
.nav-burger[aria-expanded="true"] .ic-close { display: inline; }

.nav-drawer {
  display: none;
  background: var(--console);
  border-top: 1px solid rgba(255,255,255,0.06);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.nav-drawer.open { display: block; }
.nav-drawer-inner {
  padding: 8px 16px 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-drawer .navlink {
  display: flex; align-items: center;
  padding: 12px 8px;
  min-height: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #fff; font-size: 16px; font-weight: 500;
}
.nav-drawer .navlink:last-of-type { border-bottom: 0; }
.nav-drawer .navlink.active { color: var(--ps-link-on-dark); }
.nav-drawer .nav-cta {
  margin: 16px 0 4px;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
}

/* ───────── Footer (blue anchor) ───────── */
.footer {
  background: var(--ps-blue); color: #fff;
  padding: 72px 0 32px;
}
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px;
}
.footer h4 { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 16px; color: #fff; text-transform: none; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer li a { font-size: 14px; font-weight: 400; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.7);
}
.footer-brand {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 20px;
}
.footer-brand .brand-mark { background: #fff; color: var(--ps-blue); }

/* ───────── Cards & tiles ───────── */
.card {
  background: #fff; border-radius: var(--radius-feature);
  padding: 32px; box-shadow: var(--shadow-feather);
}
.card-hero {
  background: #fff; border-radius: var(--radius-hero);
  padding: 40px; box-shadow: var(--shadow-emphasis);
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(0, 112, 204, 0.08); color: var(--ps-blue-dark);
  font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
}
.tag-on-dark {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ───────── Placeholder frames ───────── */
.ph {
  background: repeating-linear-gradient(
    135deg,
    #eef1f5 0 8px,
    #e5e9ef 8px 16px
  );
  color: #5d6672;
  display: grid; place-items: center;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 0.5px;
  text-align: center; padding: 16px;
  border-radius: var(--radius-media);
  border: 1px solid rgba(0,0,0,0.04);
}
.ph-dark {
  background: repeating-linear-gradient(
    135deg,
    #151821 0 8px,
    #0e1018 8px 16px
  );
  color: #6a7285;
  border: 1px solid rgba(255,255,255,0.04);
}

/* ───────── Inputs ───────── */
.input, .textarea, .select {
  width: 100%;
  background: #fff; color: var(--ink-deep);
  border: 1px solid var(--ink-mute);
  border-radius: var(--radius-input);
  padding: 14px 16px; font-size: 16px;
  font-family: inherit;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-placeholder); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; box-shadow: 0 0 0 2px var(--ps-blue);
}
.label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.6px;
  margin-bottom: 8px; color: var(--ink-deep); text-transform: uppercase;
}

/* ───────── Form layout primitives ───────── */
.field-grp { margin-bottom: 16px; }
.field-grp label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--ink); margin-bottom: 6px;
}
.field-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card {
  background: #fff; border-radius: 24px; padding: 40px;
  box-shadow: var(--shadow-feather);
  border: 1px solid #f0f2f5;
}
.form-card form textarea {
  min-height: 120px; resize: vertical;
}
.form-card .form-footnote {
  font-size: 11px; color: var(--ink-body);
  margin-top: 12px; text-align: center;
}
.form-msg {
  display: none;
  margin-top: 16px; padding: 14px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 500; line-height: 1.45;
}
.form-msg.success {
  background: rgba(0, 112, 204, 0.06);
  color: var(--ps-blue-dark);
  border: 1px solid rgba(0, 112, 204, 0.2);
}
.form-msg.error {
  background: rgba(200, 32, 32, 0.06);
  color: #b32020;
  border: 1px solid rgba(200, 32, 32, 0.2);
}
@media (max-width: 640px) {
  .field-row2 { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}

/* ───────── Page hero header (for sub-pages) ───────── */
.page-hero {
  background: linear-gradient(180deg, var(--shadow-black), var(--console));
  color: #fff;
  padding: 96px 0 72px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero .kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 1.6px;
  color: var(--ps-link-on-dark); text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero h1 { font-size: 54px; font-weight: 300; line-height: 1.15; max-width: 900px; letter-spacing: -0.2px; }
.page-hero .sub { color: rgba(255,255,255,0.72); font-size: 18px; max-width: 640px; margin-top: 20px; line-height: 1.5; }

/* ───────── Utility ───────── */
.stack > * + * { margin-top: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.muted { color: var(--ink-body); }
.divider { height: 1px; background: var(--divider); margin: 48px 0; }

/* Kickers (title case, NOT all-caps per brand) */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.6px;
  color: var(--ps-blue-dark);
}
.kicker::before {
  content: ""; width: 20px; height: 1px; background: var(--ps-blue);
}

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .display-xl, .page-hero h1 { font-size: 36px; }
  .section { padding: 64px 0; }

  /* Nav on mobile: shrink logo, hide inline links + CTA, show hamburger */
  .topnav-inner { padding: 12px 16px; gap: 12px; }
  .brand-logo { height: 28px; max-width: 180px; }
  .topnav-inner > .navlinks { display: none; }
  .topnav-inner > .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }

  .container-wide { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 380px) {
  .topnav-inner { padding: 10px 14px; gap: 10px; }
  .brand-logo { height: 24px; max-width: 150px; }
}

/* ───────── Tweaks panel (hero variant) ───────── */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  background: #fff; color: var(--ink-deep);
  border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  padding: 18px 20px; width: 260px;
  display: none;
  font-size: 14px;
}
.tweaks-panel.visible { display: block; }
.tweaks-panel h5 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-body); }
.tweaks-row { display: flex; gap: 8px; }
.tweaks-row button {
  flex: 1; background: #f4f6fa; color: var(--ink-deep);
  border: 1px solid #e3e7ee; padding: 10px 6px; border-radius: 8px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background 180ms ease, color 180ms ease;
}
.tweaks-row button.active { background: var(--ps-blue); color: #fff; border-color: var(--ps-blue); }

/* ───────── Home testimonial marquee ───────── */
.testimonial-marquee-section {
  background: #fff;
  padding: 88px 0 96px;
  overflow: hidden;
  border-top: 1px solid var(--divider);
}
.tm-head-wrap { margin-bottom: 40px; }
.tm-head .kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34A853; box-shadow: 0 0 0 4px rgba(52,168,83,0.15);
  display: inline-block;
}
.tm-head h2 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.tm-sub {
  color: var(--ink-soft); font-size: 17px; max-width: 640px;
  margin: 0;
}
.tm-sub .inline-link {
  color: var(--ps-blue); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(12,109,216,0.2);
}
.tm-sub .inline-link:hover { border-bottom-color: var(--ps-blue); }

.tm-marquee {
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.tm-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: tm-scroll 240s linear infinite;
  padding: 6px 10px;
}
.tm-marquee:hover .tm-track { animation-play-state: paused; }
@keyframes tm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tm-card {
  flex: 0 0 380px;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 26px 26px 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 1px 2px rgba(18,19,20,0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.tm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(18,19,20,0.08);
  border-color: #d5dde7;
}
.tm-gicon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f7f9fc; border: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: center;
}
.tm-stars {
  color: #FBBC05;
  letter-spacing: 2px;
  font-size: 16px;
  line-height: 1;
}
.tm-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-deep);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tm-meta {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
}
.tm-meta strong { color: var(--ink-deep); font-weight: 600; font-size: 14px; }
.tm-meta span { color: var(--ink-soft); }

@media (max-width: 640px) {
  .tm-card { flex-basis: 300px; padding: 22px 22px 18px; }
  .tm-text { font-size: 14.5px; }
  .tm-track { animation-duration: 180s; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-track { animation: none; }
  .tm-marquee { overflow-x: auto; }
}
