/* BrandedCrowns — static export stylesheet */

/* --- tokens/colors.css --- */

/* BrandedCrowns — Color tokens
   Primary: brand blue #1f80ff (from logo spec).
   B2B, modern-minimal: mostly white/light-gray surfaces, navy-ink text,
   blue reserved for actions + accents. No secondary hue — this is a
   single-accent system by design. */

:root {
  /* Brand */
  --bc-blue: #1f80ff;
  --bc-blue-hover: #156fe0;
  --bc-blue-press: #0f5cc0;
  --bc-blue-tint: #eaf3ff;   /* soft fills, chips, hover backgrounds */
  --bc-blue-tint-2: #d6e9ff; /* slightly stronger tint, borders on tint */

  /* Ink / neutrals (cool, near-navy — not pure black) */
  --bc-ink: #0f1720;      /* headings, primary text */
  --bc-ink-2: #48566b;    /* body copy, secondary text */
  --bc-ink-3: #7c8aa0;    /* muted / placeholder / captions */
  --bc-border: #e3e8ef;   /* hairline dividers, card borders */
  --bc-border-strong: #c9d2e0;

  /* Surfaces */
  --bc-white: #ffffff;
  --bc-surface: #ffffff;      /* default page bg */
  --bc-surface-alt: #f6f8fb;  /* section bg alternation */
  --bc-surface-dark: #0b1420; /* rare — dark footer/CTA band only */

  /* Semantic (status — for order/production states in later product surfaces) */
  --bc-success: #17835a;
  --bc-success-tint: #e6f5ef;
  --bc-warning: #b9720c;
  --bc-warning-tint: #fbf0dd;
  --bc-error: #c93434;
  --bc-error-tint: #fbeaea;

  /* Shadows */
  --bc-shadow-card: 0 1px 2px rgba(15, 23, 32, 0.04), 0 8px 24px rgba(15, 23, 32, 0.06);
  --bc-shadow-hover: 0 4px 12px rgba(15, 23, 32, 0.08), 0 12px 32px rgba(15, 23, 32, 0.10);

  /* Radii */
  --bc-radius-sm: 6px;
  --bc-radius-md: 10px;
  --bc-radius-lg: 16px;
  --bc-radius-pill: 999px;
}

/* --- tokens/spacing.css --- */

/* BrandedCrowns — Spacing scale. Generous, grid-based, modern-minimal. */
:root {
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --content-max: 1200px;
}

/* --- tokens/typography.css --- */

/* BrandedCrowns — Type tokens
   One family throughout: Poppins. Weight does the work of hierarchy —
   Medium for the "Branded" half of the wordmark and headings,
   Light for the "Crowns" half and quiet supporting labels.
   Loaded from Google Fonts CDN — see readme.md caveats re: self-hosting. */


:root {
  --font-display: 'Poppins', Arial, Helvetica, sans-serif;
  --font-sans: 'Poppins', Arial, Helvetica, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Sizes — six roles, marketing-scale (min sizes assume a homepage, not print) */
  --fs-h1: 56px;
  --fs-h2: 36px;
  --fs-h3: 24px;
  --fs-body: 17px;
  --fs-label: 14px;
  --fs-fine: 12px;

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-eyebrow: 0.12em;
}

/* --- page styles --- */

* { box-sizing: border-box; }
  body { margin: 0; font-family: var(--font-sans); color: var(--bc-ink); background: var(--bc-white); }
  a { color: var(--bc-blue); text-decoration: none; }
  a:hover { color: var(--bc-blue-hover); text-decoration: underline; }
  .wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--sp-6); }
  .btn { font-family: var(--font-sans); font-weight: var(--fw-medium); border-radius: var(--bc-radius-md); border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out, transform 80ms ease-out; }
  .btn-primary { background: var(--bc-blue); color: var(--bc-white); padding: 14px 28px; font-size: var(--fs-body); }
  .btn-primary:hover { background: var(--bc-blue-hover); color: var(--bc-white); text-decoration: none; }
  .btn-primary:active { background: var(--bc-blue-press); transform: translateY(1px); }
  .btn-secondary { background: var(--bc-white); color: var(--bc-ink); border-color: var(--bc-border-strong); padding: 14px 28px; font-size: var(--fs-body); }
  .btn-secondary:hover { background: var(--bc-surface-alt); text-decoration: none; }
  .btn-sm { padding: 10px 20px; font-size: var(--fs-label); }
  .eyebrow { font-size: var(--fs-label); font-weight: var(--fw-medium); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--bc-blue); margin: 0 0 var(--sp-3); }
  h1, h2, h3 { margin: 0; }
  h1 { font-size: var(--fs-h1); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); }
  h2 { font-size: var(--fs-h2); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
  h3 { font-size: var(--fs-h3); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
  p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--bc-ink-2); margin: 0; }
  .wordmark { font-size: 22px; color: var(--bc-blue); white-space: nowrap; }
  .wordmark b { font-weight: var(--fw-medium); }
  .wordmark i { font-weight: var(--fw-light); font-style: normal; }

  header { position: sticky; top: 0; background: rgba(255,255,255,0.96); backdrop-filter: none; border-bottom: 1px solid var(--bc-border); z-index: 10; }
  .nav-row { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3) 0; gap: var(--sp-4); }
  .nav-links { display: flex; gap: var(--sp-6); align-items: center; }
  .nav-links a { color: var(--bc-ink-2); font-size: var(--fs-label); font-weight: var(--fw-medium); }
  .nav-links a:hover { color: var(--bc-ink); text-decoration: none; }
  .nav-toggle { display: none; background: none; border: none; padding: var(--sp-2); cursor: pointer; color: var(--bc-ink); flex-shrink: 0; }
  .nav-toggle svg { display: block; }
  .header-actions { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; }
  .nav-login-mobile { display: none; }

  section { padding: var(--sp-9) 0; }
  .section-alt { background: var(--bc-surface-alt); }

  .hero { padding-top: var(--sp-9); padding-bottom: var(--sp-6); text-align: center; }
  .hero h1 { max-width: 780px; margin: 0 auto var(--sp-5); }
  .hero .accent { color: var(--bc-blue); }
  .accent { color: var(--bc-blue); }
  .hero p.lede { max-width: 560px; margin: 0 auto var(--sp-7); font-size: 19px; }
  .hero-ctas { display: flex; gap: var(--sp-3); justify-content: center; margin-bottom: var(--sp-9); }
  .hero-strip { border-top: 1px solid var(--bc-border); padding-top: var(--sp-6); display: flex; justify-content: center; gap: var(--sp-8); flex-wrap: wrap; margin-bottom: calc(-1 * var(--sp-3)); }
  .hero-stat { display: flex; flex-direction: column; align-items: center; }
  .hero-stat svg { color: var(--bc-ink); margin-bottom: var(--sp-2); }
  .hero-stat b { display: block; font-size: 28px; font-weight: var(--fw-semibold); color: var(--bc-ink); }
  .hero-stat span { font-size: var(--fs-fine); color: var(--bc-ink-3); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); }

  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
  .feature-img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--bc-radius-lg); box-shadow: var(--bc-shadow-card); }
  .story-card { background: var(--bc-white); border: 1px solid var(--bc-border); border-radius: var(--bc-radius-lg); padding: var(--sp-7); box-shadow: var(--bc-shadow-card); }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-8); max-width: 900px; margin-left: auto; margin-right: auto; }
  .step { background: var(--bc-white); border: 1px solid var(--bc-border); border-radius: var(--bc-radius-lg); padding: var(--sp-6); }
  .step .num { font-size: var(--fs-h3); font-weight: var(--fw-semibold); color: var(--bc-blue); margin-bottom: var(--sp-4); }
  .step h3 { margin-bottom: var(--sp-3); }

  .testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); margin-top: var(--sp-8); max-width: 800px; margin-left: auto; margin-right: auto; }
  .testimonial { background: var(--bc-white); border: 1px solid var(--bc-border); border-radius: var(--bc-radius-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-5); }
  .testimonial p.quote { color: var(--bc-ink); font-size: var(--fs-body); }
  .testimonial .who { font-size: var(--fs-label); color: var(--bc-ink-3); }
  .testimonial .who b { color: var(--bc-ink-2); font-weight: var(--fw-medium); }

  .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-8); }
  .plan { background: var(--bc-white); border: 1px solid var(--bc-border); border-radius: var(--bc-radius-lg); padding: var(--sp-7); display: grid; grid-template-rows: 20px 52px 20px 112px auto 20px 60px; row-gap: var(--sp-5); align-items: start; }
  .plan-price { align-self: start; }
  .plan > p:not(.plan-allocation):not(.plan-volume):not(.plan-shipping) { margin: 0; }
  .plan.featured { border-color: var(--bc-blue); box-shadow: var(--bc-shadow-hover); position: relative; }
  .plan-name { font-size: var(--fs-label); font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--bc-ink-3); }
  .plan-price { font-size: var(--fs-h2); font-weight: var(--fw-semibold); color: var(--bc-ink); }
  .plan-price span { font-size: var(--fs-label); font-weight: var(--fw-regular); color: var(--bc-ink-3); }
  .plan-price.locked { position: relative; }
  .plan-price .veil { font-size: var(--fs-h2); font-weight: var(--fw-semibold); color: var(--bc-ink); display: inline-block; }
  .plan-price.locked .veil em { font-style: normal; letter-spacing: .06em; color: var(--bc-ink-3); }
  .plan-allocation.unlock-line a { color: var(--bc-blue); font-weight: var(--fw-semibold); text-decoration: none; border-bottom: 1px solid currentColor; }
  .plan-allocation.unlock-line a:hover { opacity: .7; }
  .plan-allocation { font-size: var(--fs-label); color: var(--bc-ink-3); margin-top: calc(-1 * var(--sp-4)); }
  .plan-volume { font-size: var(--fs-label); color: var(--bc-blue); font-weight: var(--fw-semibold); margin-top: var(--sp-3); }
  .plan-volume-disabled { color: var(--bc-ink-3); }
  .plan-shipping { font-size: var(--fs-label); color: var(--bc-ink-3); margin-top: var(--sp-2); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
  .plan-shipping table { border-collapse: collapse; }
  .plan-shipping td { padding: 0; }
  .plan-shipping td:first-child { padding-right: var(--sp-3); }
  .plan-shipping img { width: 24px; height: auto; flex-shrink: 0; }
  .plan .btn.coming-soon { position: relative; color: transparent; pointer-events: none; }
  .plan .btn.coming-soon::after { content: "Coming soon"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--bc-ink-3); opacity: 0.6; font-weight: var(--fw-semibold); }
  .plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
  .plan li { font-size: var(--fs-label); color: var(--bc-ink-2); padding-left: var(--sp-5); position: relative; }
  .plan li::before { content: "—"; position: absolute; left: 0; color: var(--bc-blue); }

  .faq-list { max-width: 720px; margin: var(--sp-8) auto 0; border-top: 1px solid var(--bc-border); }
  .faq-item { border-bottom: 1px solid var(--bc-border); }
  .faq-item summary { list-style: none; cursor: pointer; padding: var(--sp-5) 0; font-size: var(--fs-h3); font-weight: var(--fw-medium); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--bc-border-strong); display: flex; align-items: center; justify-content: center; color: var(--bc-blue); font-size: 16px; transition: transform 120ms ease-out; }
  .faq-item[open] summary::after { transform: rotate(45deg); }
  .faq-item p { padding-bottom: var(--sp-5); max-width: 620px; }

  .cta-band { background: var(--bc-surface-dark); color: var(--bc-white); text-align: center; padding: var(--sp-9) 0; }
  .cta-band h2 { color: var(--bc-white); margin-bottom: var(--sp-5); }
  .cta-band p { color: rgba(255,255,255,0.8); max-width: 480px; margin: 0 auto var(--sp-7); }

  footer { padding: var(--sp-7) 0; border-top: 1px solid var(--bc-border); }
  .footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); }
  .footer-links { display: flex; gap: var(--sp-5); }
  .footer-links a { color: var(--bc-ink-3); font-size: var(--fs-fine); }
  .fine { font-size: var(--fs-fine); color: var(--bc-ink-3); }

  @media (max-width: 900px) {
    .grid-2, .steps, .testimonials, .pricing-grid { grid-template-columns: 1fr; }
    h1 { font-size: 36px; }
    .hero-strip { gap: var(--sp-6); }
  }

  @media (max-width: 720px) {
    .wrap { padding: 0 var(--sp-4); }
    section { padding: var(--sp-7) 0; }
    h1 { font-size: 30px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }
    .hero { padding-top: var(--sp-7); }
    .hero p.lede { font-size: 16px; }
    .hero-ctas .btn, .btn-primary, .btn-secondary { width: 100%; }
    .hero-ctas { flex-direction: column; }
    .hero-strip { gap: var(--sp-6) var(--sp-7); }
    .feature-img { height: 220px; }
    .plan { grid-template-rows: auto; }
    .plan-shipping { flex-wrap: wrap; }
    .cta-band .btn { width: 100%; }

    .nav-toggle { display: inline-flex; }
    .nav-links { position: fixed; top: 73px; left: 0; right: 0; bottom: 0; background: var(--bc-white); flex-direction: column; align-items: flex-start; gap: 0; padding: var(--sp-5) var(--sp-5); overflow-y: auto; transform: translateX(100%); transition: transform 200ms ease-out; }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { width: 100%; padding: var(--sp-4) 0; border-bottom: 1px solid var(--bc-border); font-size: var(--fs-body); }
    .nav-login-desktop { display: none; }
    .nav-login-mobile { display: inline-flex; width: 100%; margin-top: var(--sp-4); border-bottom: none; }

    .grid-2 { text-align: center; }
    .grid-2 > div { text-align: center !important; order: 1; }
    .grid-2 > img, .grid-2 > video, .grid-2 > a { order: 2; }
    .grid-2 a[style*="font-size"] { margin-left: auto; margin-right: auto; }
  }

