/* =============================================================
   PolkuAI · Design Tokens
   Colors + typography for HTML artifacts, decks, prototypes.
   Import this file at the top of any PolkuAI design.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Work+Sans:wght@500;600;700&family=Plus+Jakarta+Sans:wght@700;800&family=Manrope:wght@600;700&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  /* ----------------------------------------------------------
     PRIMARY GREENS
     ---------------------------------------------------------- */
  --polku-sage:           #609480;   /* Primary · CTAs, nav active, links */
  --polku-sage-dark:      #426658;   /* Hover, shadows, dark accents */
  --polku-sage-deep:      #387F7C;   /* As used in actual logo SVG */
  --polku-teal:           #20b69e;   /* Accent · chat widget, secondary highlight */
  --polku-teal-dark:      #1ca08a;   /* Teal hover */

  /* ----------------------------------------------------------
     DARK + CTA SECTIONS
     ---------------------------------------------------------- */
  --polku-navy:           #101330;   /* Dark CTA section background */
  --polku-ink:            #000000;   /* Headlines */
  --polku-graphite:       #262626;   /* Body text */
  --polku-mute:           #777980;   /* Meta, captions, secondary text */

  /* ----------------------------------------------------------
     NEUTRALS / SURFACES
     ---------------------------------------------------------- */
  --polku-page:           #f5f5f5;   /* Page background — warm off-white */
  --polku-surface:        #ffffff;   /* Cards, sheets */
  --polku-mint:           #d3e3dd;   /* Subtle tint background, soft cards */
  --polku-mint-soft:      #e8f0ec;   /* Lighter mint, for large fills */
  --polku-line:           #e0e0e0;   /* Dividers, borders */
  --polku-line-soft:      #ececec;   /* Subtle internal dividers */

  /* ----------------------------------------------------------
     SEMANTIC TOKENS (reach for these in components)
     ---------------------------------------------------------- */
  --bg-page:              var(--polku-page);
  --bg-surface:           var(--polku-surface);
  --bg-tint:              var(--polku-mint);
  --bg-inverse:           var(--polku-navy);

  --fg-strong:            var(--polku-ink);
  --fg-default:           var(--polku-graphite);
  --fg-mute:              var(--polku-mute);
  --fg-on-dark:           #ffffff;
  --fg-brand:             var(--polku-sage);

  --border-default:       var(--polku-line);
  --border-strong:        var(--polku-sage);

  --accent:               var(--polku-sage);
  --accent-hover:         var(--polku-sage-dark);
  --accent-soft:          var(--polku-teal);

  /* ----------------------------------------------------------
     RADII
     ---------------------------------------------------------- */
  --radius-xs:            4px;
  --radius-sm:            6px;
  --radius-md:            8px;     /* default button radius */
  --radius-lg:            12px;    /* card radius */
  --radius-xl:            20px;
  --radius-pill:          999px;
  --radius-circle:        50%;

  /* ----------------------------------------------------------
     SHADOWS — soft, ambient. Never harsh.
     ---------------------------------------------------------- */
  --shadow-xs:    0 1px 2px rgba(16, 19, 48, 0.04);
  --shadow-sm:    0 2px 6px rgba(16, 19, 48, 0.06);
  --shadow-md:    0 8px 24px rgba(16, 19, 48, 0.08);
  --shadow-lg:    0 16px 40px rgba(16, 19, 48, 0.10);
  --shadow-cta:   0 8px 20px rgba(96, 148, 128, 0.30);

  /* ----------------------------------------------------------
     SPACING SCALE (4px base)
     ---------------------------------------------------------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ----------------------------------------------------------
     TYPOGRAPHY · FAMILIES
     ---------------------------------------------------------- */
  --font-display:   'Plus Jakarta Sans', system-ui, sans-serif;
  --font-heading:   'Work Sans', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-ui:        'Manrope', system-ui, sans-serif;
  --font-wordmark:  'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  /* ↑ The PolkuAI wordmark in the supplied logo files is set in a
     transitional serif. Cormorant Garamond is the closest open
     match (substitution — flag if exact face is required). */

  /* ----------------------------------------------------------
     TYPOGRAPHY · ROLES
     ---------------------------------------------------------- */
  --fs-eyebrow:   14px;
  /* Body-tekstit skaalautuvat viewportin mukaan: pienillä näytöillä
     pysyvät ennallaan (16/18/14), mutta isossa ruudussa kasvavat
     luonnollisesti niin etteivät näytä pieniltä. */
  --fs-body-sm:   clamp(14px, 0.4vw + 0.6rem, 17px);
  --fs-body:      clamp(16px, 0.55vw + 0.65rem, 19px);
  --fs-body-lg:   clamp(18px, 0.55vw + 0.75rem, 22px);
  --fs-h4:        20px;
  --fs-h3:        24px;
  --fs-h2:        32px;
  --fs-h1:        44px;
  --fs-display:   56px;

  --lh-tight:     1.1;
  --lh-snug:      1.25;
  --lh-normal:    1.5;
  --lh-relaxed:   1.7;

  --tracking-wide: 0.16em;   /* For uppercase eyebrows */
  --tracking-tight: -0.02em; /* For display headlines */
}

/* =============================================================
   BASE ELEMENT STYLES
   ============================================================= */

html, body {
  background: var(--bg-page);
  color: var(--fg-default);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { color: var(--fg-strong); margin: 0; }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
}

h3, .h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}

h4, .h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
}

p { margin: 0 0 var(--space-4) 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--polku-sage);
}

.meta {
  font-size: var(--fs-body-sm);
  color: var(--fg-mute);
}

a {
  color: var(--polku-sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--polku-sage-dark); border-bottom-color: currentColor; }

/* =============================================================
   BUTTONS — UI font (Manrope) for crisp action labels
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, transform 0.06s ease, box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--polku-sage);
  color: #ffffff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--polku-sage-dark); color: #ffffff; border-bottom-color: transparent; }

.btn-outline {
  background: transparent;
  color: var(--polku-sage);
  border-color: var(--polku-sage);
}
.btn-outline:hover {
  background: var(--polku-sage);
  color: #ffffff;
  border-bottom-color: transparent;
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-outline-light:hover { background: #ffffff; color: var(--polku-navy); }

.btn-ghost {
  background: transparent;
  color: var(--polku-graphite);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--polku-mint); }
