/* ==========================================================================
   Shownetic — marketing site
   --------------------------------------------------------------------------
   Design tokens are ported 1:1 from the Flutter app:
     ~/Desktop/Shownetic/lib/app/design_system/colors/app_colors.dart
   Variable names mirror the Dart names so the two stay easy to reconcile.
   If a brand colour changes, change it in BOTH places.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap");

:root {
  /* ─── Shownetic accent ────────────────────────────────────────────────── */
  /* Sampled from the wordmark itself (public/assets/shownetic-logo.png).
     NOTE: this intentionally diverges from AppColors.showneticBlue (#2561c8)
     in the Flutter app — the app has not been updated to the logo navy yet.
     Hover goes LIGHTER, not darker: the base is near-black, so darkening
     it reads as no feedback at all. */
  --shownetic-blue: #00016a;
  --shownetic-blue-light: #e8e8ff;
  --shownetic-blue-hover: #000199;

  /* ─── Brand navy ──────────────────────────────────────────────────────── */
  --breeze-navy: #120c6e;
  --card-navy: #0d2d5d;

  /* ─── Spike mark palette (confetti identity system) ───────────────────── */
  --spike-pink: #ff66c4;
  --spike-green: #3ecf6f;
  --spike-orange: #ff6241;
  --spike-yellow: #fff50f;
  --spike-blue: #2db3fc;

  /* ─── Brand gradient (blue → pink, jewel-tone) ────────────────────────── */
  --grad-blue: #1455a8;
  --grad-violet: #484faa;
  --grad-orchid: #854085;
  --grad-pink: #c2326c;
  --brand-gradient: linear-gradient(
    100deg,
    var(--grad-blue) 0%,
    var(--grad-violet) 34%,
    var(--grad-orchid) 68%,
    var(--grad-pink) 100%
  );

  /* ─── Greyscale ───────────────────────────────────────────────────────── */
  --grey-900: #0f172a;
  --grey-700: #334155;
  --grey-600: #64748b;
  --grey-400: #94a3b8;
  --grey-200: #e2e8f0;
  --grey-100: #f1f5f9;
  --white: #ffffff;

  /* ─── Semantic ────────────────────────────────────────────────────────── */
  --page-background: #f4f6f9;
  --surface: var(--white);
  --border: var(--grey-200);
  --text-primary: var(--grey-900);
  --text-secondary: var(--grey-600);
  --danger: #ef4444;
  --success: #10b981;

  /* ─── Type ────────────────────────────────────────────────────────────── */
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ─── Shape — "slightly rounded", matching the app ────────────────────── */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  /* ─── Elevation ───────────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px -18px rgba(15, 23, 42, 0.22);

  /* ─── Layout ──────────────────────────────────────────────────────────── */
  --max-width: 1120px;
  --gutter: 24px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: var(--shownetic-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — keyboard users land here first */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   Spike mark — the brand's confetti motif, as a CSS shape
   ========================================================================== */

.spike {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  transform: rotate(45deg);
  flex: none;
}

.spike--pink { background: var(--spike-pink); }
.spike--green { background: var(--spike-green); }
.spike--orange { background: var(--spike-orange); }
.spike--yellow { background: var(--spike-yellow); }
.spike--blue { background: var(--spike-blue); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo:hover {
  text-decoration: none;
}

/* Intrinsic size is 570x120; height drives it and width follows the
   aspect ratio, so the browser reserves the right box before it loads. */
.logo img {
  display: block;
  height: 26px;
  width: auto;
}

@media (max-width: 560px) {
  .logo img {
    height: 22px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Scoped to __links, not .site-nav, so it never overrides a .btn inside the
   nav — `.site-nav a` outranks `.btn--primary` on specificity and was
   repainting the header button's label grey. */
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.site-nav__links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-nav__links {
    display: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--shownetic-blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--shownetic-blue-hover);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--grey-100);
}

.btn--lg {
  font-size: 16px;
  padding: 14px 26px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 92px 0 76px;
  overflow: hidden;
}

.hero::before {
  /* soft brand wash behind the headline */
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(37, 97, 200, 0.13) 0%,
    rgba(37, 97, 200, 0) 68%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--shownetic-blue-light);
  color: var(--shownetic-blue);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.eyebrow .spike {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 34px;
}

/* ==========================================================================
   Signup form
   ========================================================================== */

.signup {
  max-width: 480px;
  margin: 0 auto;
}

.signup__row {
  display: flex;
  gap: 10px;
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text-primary);
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup input[type="email"]::placeholder {
  color: var(--text-secondary);
}

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--shownetic-blue);
  box-shadow: 0 0 0 3px var(--shownetic-blue-light);
}

.signup__note {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 14px;
}

.signup__msg {
  font-size: 15px;
  font-weight: 500;
  margin-top: 16px;
  min-height: 22px;
}

.signup__msg.is-success { color: var(--success); }
.signup__msg.is-error { color: var(--danger); }

@media (max-width: 560px) {
  .signup__row {
    flex-direction: column;
  }
  .signup .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Product visual — stylised callboard, built from real design tokens
   ========================================================================== */

.showcase {
  margin-top: 72px;
  perspective: 1600px;
}

.showcase__frame {
  max-width: 940px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.showcase__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: var(--grey-100);
  border-bottom: 1px solid var(--border);
}

.showcase__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--grey-200);
}

.showcase__body {
  display: grid;
  grid-template-columns: 208px 1fr;
  min-height: 400px;
  background: var(--page-background);
  text-align: left;
}

.showcase__sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
}

.showcase__side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.showcase__side-item.is-active {
  background: var(--shownetic-blue-light);
  color: var(--shownetic-blue);
  font-weight: 600;
}

.showcase__main {
  padding: 26px;
}

.showcase__hero-card {
  background: var(--card-navy);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: var(--white);
  margin-bottom: 20px;
}

.showcase__hero-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 5px;
}

.showcase__hero-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.showcase__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.showcase__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.showcase__card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.showcase__line {
  height: 8px;
  border-radius: 4px;
  background: var(--grey-100);
  margin-bottom: 8px;
}

.showcase__line--short { width: 55%; }
.showcase__line--mid { width: 78%; }

@media (max-width: 720px) {
  .showcase__body {
    grid-template-columns: 1fr;
  }
  .showcase__sidebar {
    display: none;
  }
  .showcase__cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section--tint {
  background: var(--page-background);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__head h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section__head p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Feature grid
   ========================================================================== */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  margin-bottom: 18px;
}

.feature h3 {
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 9px;
}

.feature p {
  font-size: 15.5px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.cta {
  background: var(--brand-gradient);
  border-radius: var(--radius-xl);
  padding: 68px 40px;
  text-align: center;
  color: var(--white);
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta .signup input[type="email"] {
  border-color: transparent;
}

.cta .btn--primary {
  background: var(--white);
  color: var(--grey-900);
}

.cta .btn--primary:hover {
  background: var(--grey-100);
}

.cta .signup__note {
  color: rgba(255, 255, 255, 0.7);
}

.cta .signup__msg.is-success { color: var(--white); }
.cta .signup__msg.is-error { color: #ffd7d7; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 96px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--text-secondary);
  font-size: 15px;
}

.site-footer__copy {
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* ==========================================================================
   Long-form content (press / privacy / terms)
   ========================================================================== */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 0 32px;
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.doc__lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 44px;
}

.doc h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 44px 0 14px;
}

.doc h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

.doc p,
.doc li {
  color: var(--grey-700);
  margin-bottom: 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc__meta {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.callout {
  background: var(--shownetic-blue-light);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.boilerplate {
  background: var(--grey-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 20px 0 28px;
}

.boilerplate p:last-child {
  margin-bottom: 0;
}

/* Editorial note — visible only while the page is a draft. Delete the
   .draft-note blocks (and this rule) before the site goes public. */
.draft-note {
  background: #fff8e1;
  border: 1px dashed #e0b400;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
  color: #6b5200;
}

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