@import url('/css/tokens.css');

/* gardensuite/css/shared.css
   ═══════════════════════════════════════════════════════════════════
   GardenSuite + EstateBuilder — shared dark theme for auth / account /
   pricing pages. Mirrors the Pro tool's premium dark aesthetic so the
   whole product feels like one continuous system.

   Palette source: estatebuilder-ai.html :root tokens.
   Use this for any page that lives "inside" the product (auth pages,
   billing, account settings, dashboards). For PUBLIC marketing landings
   that need to read as friendly/accessible, use a light variant.

   Loaded via:  <link rel="stylesheet" href="css/shared.css">
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Backgrounds — near-black with subtle elevation steps */
  --bg-base:        #0C0C0E;
  --bg-raised:      #131318;
  --bg-surface:     #1B1B22;
  --bg-elevated:    #22222A;
  --bg-hover:       rgba(245, 241, 236, 0.06);

  /* Borders */
  --border-subtle:  rgba(245, 241, 236, 0.06);
  --border-default: rgba(245, 241, 236, 0.14);
  --border-strong:  rgba(245, 241, 236, 0.30);

  /* Ink (text) — cream primary, dimming scale */
  --text-primary:   #F5F1EC;
  --text-secondary: #A0A0AA;
  --text-tertiary:  #6B7280;
  --text-muted:     #50505A;

  --accent:         #F5F1EC;

  /* Warm gold — primary brand accent + CTA fill */
  --gold:           #e8c87a;
  --gold-soft:      rgba(232, 200, 122, 0.16);

  /* Secondary accents — used for chart series + semantic states */
  --periwinkle:     #6C8BC4;
  --coral:          #F08040;
  --tan:            #C8A26A;       /* Fraunces serif italic emphasis */
  --green:          #66ccaa;
  --green-soft:     rgba(102, 204, 170, 0.14);
  --red:            #e05555;
  --red-soft:       rgba(224, 85, 85, 0.14);
  --violet:         #B69BD9;

  /* Card surface — solid dark with subtle border (no glass blur — keep
     it premium tool feel, not playful glassmorphism) */
  --card-bg:        rgba(245, 241, 236, 0.04);
  --card-border:    rgba(245, 241, 236, 0.10);
  --card-shadow:    0 18px 48px -20px rgba(0, 0, 0, 0.6);

  --radius-card:    14px;
  --radius-button:  9px;

  --font-display:   'Outfit', system-ui, sans-serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', ui-monospace, monospace;
  --font-serif:     'Fraunces', Georgia, serif;
}

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

html, body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--bg-base);
  /* Subtle radial accents — same recipe as the Pro tool, very low opacity
     so the bg reads as "deep slate-black" not "rainbow" */
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 0%,   rgba(108, 139, 196, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 0%,  rgba(240, 128,  64, 0.04), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(102, 204, 170, 0.04), transparent 60%);
  background-attachment: fixed;
}

a { color: var(--text-primary); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Italic emphasis word — Fraunces serif italic in warm tan. Use sparingly
   (one per heading) for premium editorial feel. Matches Pro tool. */
em.emph {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--tan);
}

/* Scrollbars — subtle on dark */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(245, 241, 236, 0.14);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 241, 236, 0.30);
  background-clip: padding-box;
}

/* ════════════════════════ NAV ════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--coral) 100%);
  display: grid; place-items: center;
  color: #0C0C0E;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 14px -4px rgba(232, 200, 122, 0.5);
}

/* Unified brand logo image — used on every umbrella + landing page so the
   actual logo carries across the whole product. On dark surfaces it's
   inverted to white; on the light homeowner tool it stays dark naturally. */
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
  filter: invert(1) brightness(1.05);
}
[data-theme="light"] .brand-logo {
  filter: none;
}
.nav-links {
  display: flex; align-items: center; gap: 26px;
}
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  transition: color 120ms ease;
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.cta {
  background: var(--gold); color: var(--bg-base);
  padding: 9px 16px; border-radius: var(--radius-button);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.4px;
}
.nav-links a.cta:hover {
  background: #f0d28a; color: var(--bg-base); filter: brightness(1.05);
}
.nav-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-secondary);
}
.nav-user .email {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.nav-user .tier-pill {
  font-size: 9.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid;
}
.nav-user .tier-pill.free {
  background: rgba(160, 160, 170, 0.08);
  color: var(--text-secondary);
  border-color: rgba(160, 160, 170, 0.3);
}
.nav-user .tier-pill.pro {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: rgba(232, 200, 122, 0.4);
}
.nav-user .tier-pill.studio {
  background: rgba(245, 241, 236, 0.08);
  color: var(--text-primary);
  border-color: rgba(245, 241, 236, 0.3);
}

@media (max-width: 720px) {
  .nav-links a:not(.cta) { display: none; }
}

/* ════════════════════════ CONTAINER ════════════════════════ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* ════════════════════════ CARDS ════════════════════════ */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 32px;
}
.card-tight { padding: 22px; }

/* ════════════════════════ FORMS ════════════════════════ */
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.form-row input, .form-row select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 120ms ease, background 120ms ease;
}
.form-row input:focus, .form-row select:focus {
  border-color: var(--gold);
  background: var(--bg-elevated);
}
.form-row input::placeholder { color: var(--text-muted); }
.form-row .hint {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.5;
}

.form-error {
  background: var(--red-soft);
  border: 1px solid rgba(224, 85, 85, 0.35);
  color: #ff8888;
  padding: 11px 14px;
  border-radius: var(--radius-button);
  font-size: 13px;
  margin-bottom: 14px;
}
.form-success {
  background: var(--green-soft);
  border: 1px solid rgba(102, 204, 170, 0.35);
  color: #88e6c4;
  padding: 11px 14px;
  border-radius: var(--radius-button);
  font-size: 13px;
  margin-bottom: 14px;
}

/* ════════════════════════ BUTTONS ════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: 0; border-radius: var(--radius-button);
  font: 600 13.5px/1 var(--font-display);
  letter-spacing: 0.3px;
  cursor: pointer; text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease, filter 120ms ease, border-color 120ms ease;
}
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--gold); color: var(--bg-base);
  box-shadow: 0 8px 22px -10px rgba(232, 200, 122, 0.5);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: var(--bg-base);
  box-shadow: 0 12px 30px -10px rgba(232, 200, 122, 0.7);
}
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.btn-ghost {
  background: rgba(245, 241, 236, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover {
  background: rgba(245, 241, 236, 0.12);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-gold {
  background: var(--gold); color: var(--bg-base);
  box-shadow: 0 8px 22px -10px rgba(232, 200, 122, 0.5);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-arrow::after { content: '→'; transition: transform 150ms ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ════════════════════════ EYEBROW + LEDE ════════════════════════ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.lede {
  font-size: 16px; line-height: 1.65;
  color: var(--text-secondary);
}

/* ════════════════════════ AUTH PAGE LAYOUT ════════════════════════ */
.auth-shell {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 60px 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
}
.auth-card h1 {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.auth-card .lede {
  font-size: 14.5px;
  margin-bottom: 28px;
}
.auth-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}
.auth-foot a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.auth-foot a:hover { color: #f0d28a; }

/* ════════════════════════ PRICING ════════════════════════ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 40px 0 28px;
}
@media (max-width: 880px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column;
  transition: border-color 200ms ease, transform 200ms ease;
}
.tier-card:hover { border-color: var(--border-default); }
.tier-card.featured {
  border-color: var(--gold);
  box-shadow: 0 24px 60px -24px rgba(232, 200, 122, 0.35);
  transform: translateY(-4px);
}
.tier-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--bg-base);
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 12px; border-radius: 99px;
  white-space: nowrap;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.tier-blurb {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.tier-price {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.tier-price .per {
  font-size: 13.5px; font-weight: 500;
  color: var(--text-tertiary);
}
.tier-price .currency {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 600;
  vertical-align: top;
  margin-right: 3px;
}
.tier-billed {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-bottom: 22px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}
.tier-card ul {
  list-style: none;
  margin-bottom: 26px;
  flex-grow: 1;
}
.tier-card li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  border-bottom: 1px solid var(--border-subtle);
}
.tier-card li:last-child { border-bottom: 0; }
.tier-card li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 8px;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}
.tier-card li.muted {
  color: var(--text-tertiary);
}
.tier-card li.muted::before { content: '\2014'; color: var(--text-muted); }
.tier-card li strong { color: var(--text-primary); font-weight: 600; }

/* ════════════════════════ ACCOUNT ════════════════════════ */
.account-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px;
  margin-top: 26px;
}
@media (max-width: 840px) { .account-grid { grid-template-columns: 1fr; } }
.account-stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.account-stat-row:last-child { border-bottom: 0; }
.account-stat-row .k {
  font-size: 13px; color: var(--text-secondary);
}
.account-stat-row .v {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.account-stat-row .v.highlight { color: var(--gold); }

.tier-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 99px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase;
  border: 1px solid;
}
.tier-badge.free {
  background: rgba(160, 160, 170, 0.08);
  color: var(--text-secondary);
  border-color: rgba(160, 160, 170, 0.3);
}
.tier-badge.pro {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: rgba(232, 200, 122, 0.4);
}
.tier-badge.studio {
  background: var(--text-primary);
  color: var(--bg-base);
  border-color: var(--text-primary);
}

/* ════════════════════════ COMPARE TABLE (pricing page) ════════════════════════ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-secondary);
}
.compare-table th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.compare-table th.numeric, .compare-table td.numeric { text-align: center; }
.compare-table td.check { color: var(--green); font-weight: 700; font-size: 15px; text-align: center; }
.compare-table td.dash  { color: var(--text-muted); text-align: center; }
.compare-table tr:last-child td { border-bottom: 0; }
