/* Steaan marketing site — same design tokens as the app (teal, light, solid surfaces). */

:root {
  --mg-primary: #0F766E;
  --mg-primary-hover: #115E59;
  --mg-primary-tint: #F0FDFA;
  --mg-bg: #FAFAF9;
  --mg-surface: #FFFFFF;
  --mg-text: #1C1917;
  --mg-text-secondary: #57534E;
  --mg-text-muted: #78716C;
  --mg-border: #E7E5E4;
  --mg-radius: 8px;
  --mg-radius-lg: 12px;
  --mg-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 2px 8px rgba(28, 25, 23, 0.04);
  --mg-shadow-lg: 0 2px 4px rgba(28, 25, 23, 0.05), 0 12px 32px rgba(28, 25, 23, 0.10);
}

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

body {
  margin: 0;
  background: var(--mg-bg);
  color: var(--mg-text);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1080px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 48px); }

h1, h2, h3 { line-height: 1.25; font-weight: 600; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 24px; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 16px; }
a { color: var(--mg-primary); }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px max(24px, calc((100% - 1080px) / 2));
  background: var(--mg-surface);
  border-bottom: 1px solid var(--mg-border);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mg-text); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--mg-radius); background: var(--mg-primary);
}
.brand-name { font-weight: 600; font-size: 1.0625rem; }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav > a:not(.btn) { text-decoration: none; color: var(--mg-text-secondary); font-size: 0.9375rem; }
.site-nav > a:not(.btn):hover { color: var(--mg-text); }
.site-nav > .btn { text-decoration: none; }

/* Hamburger — only shown on small screens (see the 640px media block) */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--mg-border); border-radius: var(--mg-radius);
  background: var(--mg-surface); color: var(--mg-text); cursor: pointer;
}

/* Products dropdown — CSS only, opens on hover and on keyboard focus */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.9375rem; color: var(--mg-text-secondary);
}
.nav-dropdown-toggle .caret { transition: transform 0.15s ease; }
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle { color: var(--mg-text); }
.nav-dropdown:hover .caret,
.nav-dropdown:focus-within .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 300px; padding: 8px;
  background: var(--mg-surface); border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg); box-shadow: var(--mg-shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
/* Invisible bridge so the pointer can travel from the toggle into the menu */
.nav-dropdown-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: var(--mg-radius); text-decoration: none;
}
.nav-dropdown-item:hover { background: var(--mg-primary-tint); }
.nav-dropdown-item .prod-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--mg-radius); background: var(--mg-primary);
  margin-top: 2px;
}
.nav-dropdown-item strong { display: block; color: var(--mg-text); font-size: 0.9375rem; line-height: 1.4; }
.nav-dropdown-item .desc { display: block; color: var(--mg-text-muted); font-size: 0.8125rem; line-height: 1.5; }
.tag-soon {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: #FEF3C7; color: #92400E; font-size: 0.6875rem; font-weight: 600;
  vertical-align: 2px;
}

/* Buttons */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: var(--mg-radius);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; border: 1px solid transparent;
  font-family: inherit; cursor: pointer;
}
.btn-primary { background: var(--mg-primary); color: #fff; }
.btn-primary:hover { background: var(--mg-primary-hover); }
.btn-ghost { border-color: var(--mg-border); color: var(--mg-text) !important; background: var(--mg-surface); }
.btn-ghost:hover { border-color: var(--mg-primary); color: var(--mg-primary) !important; }
.btn-inverse { background: #fff; color: var(--mg-primary) !important; }
.btn-inverse:hover { background: var(--mg-primary-tint); }
.btn-lg { padding: 13px 26px; font-size: 1rem; }

/* Hero — layered teal gradients plus a fading dot grid for depth */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(48rem 26rem at 12% -8rem, rgba(15, 118, 110, 0.10), transparent 62%),
    radial-gradient(56rem 30rem at 88% -12rem, rgba(13, 148, 136, 0.13), transparent 65%),
    radial-gradient(44rem 24rem at 50% 115%, rgba(15, 118, 110, 0.07), transparent 70%),
    var(--mg-bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15, 118, 110, 0.16) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(50rem 28rem at 50% -6rem, #000 25%, transparent 72%);
  mask-image: radial-gradient(50rem 28rem at 50% -6rem, #000 25%, transparent 72%);
}
.hero .container { position: relative; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem;
  font-weight: 600; color: var(--mg-primary); margin-bottom: 12px;
}
.lede { font-size: 1.1875rem; color: var(--mg-text-secondary); max-width: 46rem; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.875rem; color: var(--mg-text-muted); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--mg-surface); border-block: 1px solid var(--mg-border); }
.section-lede { color: var(--mg-text-secondary); max-width: 46rem; margin-bottom: 32px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--mg-surface); border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg); padding: 24px; box-shadow: var(--mg-shadow);
}
.section-alt .card { box-shadow: none; }
.card p:last-child, .feature p:last-child { margin-bottom: 0; }

.step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mg-primary-tint); color: var(--mg-primary);
  font-weight: 600; font-size: 0.875rem; margin-bottom: 12px;
}
.feature p { color: var(--mg-text-secondary); }

/* Product cards (Steaan home) */
.product-card {
  display: flex; flex-direction: column; gap: 14px; padding: 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: var(--mg-shadow-lg);
}
.product-head { display: flex; align-items: center; gap: 14px; }
.product-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; background: var(--mg-primary);
}
.product-head h3 { margin: 0; font-size: 1.375rem; }
.badge-live, .badge-soon {
  margin-left: auto; padding: 3px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.badge-live { background: var(--mg-primary-tint); color: var(--mg-primary); }
.badge-soon { background: #FEF3C7; color: #92400E; }
.product-tagline { font-weight: 600; margin: 0; }
.product-desc { color: var(--mg-text-secondary); margin: 0; }
.product-cta { margin-top: auto; padding-top: 8px; }

/* CTA band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px; border-radius: var(--mg-radius-lg);
  background: linear-gradient(135deg, var(--mg-primary), var(--mg-primary-hover));
  color: #fff;
}
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* Pricing */
.price { font-size: 2rem; font-weight: 600; color: var(--mg-primary); margin: 8px 0 4px; }
.price-per { color: var(--mg-text-muted); font-size: 0.875rem; margin: 0; }
.fineprint { margin-top: 24px; font-size: 0.875rem; color: var(--mg-text-muted); }
.cta-row { margin-top: 32px; }

/* Pricing calculator */
.price-calc { padding: 0; overflow: hidden; }
.price-calc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.price-calc-features { padding: 32px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative; padding: 6px 0 6px 30px; color: var(--mg-text-secondary);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mg-primary-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.price-calc-panel {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px; background: var(--mg-primary-tint);
  border-left: 1px solid var(--mg-border);
}
.price-calc-panel label { font-weight: 600; margin-bottom: 12px; }
.qty-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 16px; }
.qty-btn {
  width: 44px; border: 1px solid var(--mg-border); border-radius: var(--mg-radius);
  background: var(--mg-surface); color: var(--mg-text);
  font-size: 1.25rem; font-weight: 600; cursor: pointer; line-height: 1;
}
.qty-btn:hover { border-color: var(--mg-primary); color: var(--mg-primary); }
#transfer-count {
  width: 96px; padding: 10px 12px; text-align: center;
  border: 1px solid var(--mg-border); border-radius: var(--mg-radius);
  background: var(--mg-surface); color: var(--mg-text);
  font: inherit; font-size: 1.125rem; font-weight: 600;
  appearance: textfield; -moz-appearance: textfield;
}
#transfer-count::-webkit-outer-spin-button,
#transfer-count::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#transfer-count:focus {
  outline: none; border-color: var(--mg-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
.calc-discount {
  margin: 0 0 4px; padding: 2px 12px; border-radius: 999px;
  background: var(--mg-primary); color: #fff; font-size: 0.8125rem; font-weight: 600;
}
.price-calc-panel .btn { margin-top: 20px; }
.calc-note { margin: 16px 0 0; font-size: 0.8125rem; color: var(--mg-text-muted); }

/* FAQ */
details {
  background: var(--mg-bg); border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius); padding: 16px 20px; margin-bottom: 12px;
}
details[open] { background: var(--mg-surface); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 12px 0 0; color: var(--mg-text-secondary); }

/* Coming soon (Ticksy) */
.soon-hero { padding: 120px 0 100px; }
.soon-hero .product-mark { display: flex; width: 64px; height: 64px; border-radius: 14px; margin: 0 auto 20px; }
.soon-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px; margin-bottom: 16px;
  background: #FEF3C7; color: #92400E; font-size: 0.8125rem; font-weight: 600;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
.form-card { padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--mg-border); border-radius: var(--mg-radius);
  background: #fff; color: var(--mg-text); font: inherit;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--mg-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
.field textarea { min-height: 160px; resize: vertical; }
/* Honeypot: hidden from people, present for bots */
.hp-field {
  position: absolute !important; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.turnstile-slot { margin: 8px 0 20px; min-height: 65px; }
.notice {
  padding: 14px 18px; border-radius: var(--mg-radius); margin-bottom: 20px;
  border: 1px solid transparent; font-size: 0.9375rem;
}
.notice-success { background: var(--mg-primary-tint); border-color: rgba(15, 118, 110, 0.3); color: #134E4A; }
.notice-error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.contact-aside .card { padding: 24px; }
.contact-aside h3 { margin-bottom: 8px; }
.contact-aside p { color: var(--mg-text-secondary); font-size: 0.9375rem; }
.contact-aside p:last-child { margin-bottom: 0; }

/* Footer — centered and stacked: brand on top, one row of links below */
.site-footer { background: var(--mg-surface); border-top: 1px solid var(--mg-border); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand { font-weight: 600; margin: 0 0 4px; }
.footer-muted { color: var(--mg-text-muted); font-size: 0.875rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 16px; }
.footer-links a { color: var(--mg-text-secondary); text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--mg-primary); }
.footer-links a:not(:first-child)::before { content: "·"; margin: 0 12px; color: var(--mg-text-muted); }

/* Product screenshots */
.screenshot { margin: 0; }
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg);
  box-shadow: var(--mg-shadow-lg);
}
.screenshot figcaption {
  margin-top: 12px;
  color: var(--mg-text-secondary);
  font-size: 0.9375rem;
  text-align: center;
}
.screenshot-row { margin-top: 32px; }
.screenshot img { cursor: zoom-in; }

/* Lightbox: click a screenshot to enlarge */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(28, 25, 23, 0.82);
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1568px, 100%);
  max-height: 100%;
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow-lg);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
body.lightbox-open { overflow: hidden; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal h2 { margin-top: 32px; font-size: 1.25rem; }
.legal p, .legal li { color: var(--mg-text-secondary); }
.legal .updated { color: var(--mg-text-muted); font-size: 0.875rem; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .price-calc-grid { grid-template-columns: 1fr; }
  .price-calc-panel { border-left: none; border-top: 1px solid var(--mg-border); }
}

@media (max-width: 640px) {
  /* Compact bar: brand left, hamburger right. The nav becomes a tap-to-open
     panel below; the Products hover-dropdown turns into a plain link group,
     because touch screens have no hover. */
  .site-header { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 8px; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav > a:not(.btn) { padding: 10px 4px; font-size: 1rem; }
  .site-nav > .btn { margin-top: 6px; text-align: center; }
  .nav-dropdown-toggle { display: none; }
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; padding: 0; border: none; box-shadow: none; background: none;
    transition: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-item { padding: 10px 4px; }
  .lightbox { padding: 12px; }
  .hero { padding: 56px 0 48px; }
  .soon-hero { padding: 72px 0 64px; }
  .section { padding: 48px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; }
}
