/* ===========================================================================
   KitchenStack marketing site — styles
   Editable source. Design tokens live in :root; edit copy in index.html.
   =========================================================================== */

:root {
  /* Brand palette */
  --green-dark:   #245042;  /* dark sections, footer, primary text on light */
  --green:        #326f59;  /* primary buttons, icons */
  --green-mint:   #81c6a7;  /* light accent */
  --green-label:  #499a79;  /* eyebrow / kicker labels */

  /* Neutrals */
  --bg:           #f5f4f0;  /* page background */
  --bg-warm:      #ede9e1;  /* alternating warm section */
  --surface:      #ffffff;  /* cards, nav */
  --ink:          #1a1a1a;  /* headings */
  --body:         #585858;  /* body copy (slightly darker than capture for readability) */
  --muted:        #8a8a8a;  /* secondary text */
  --line:         #e7e3da;  /* hairline borders */

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
}

/* Reset / base ------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.1; }
h1 { font-size: 62px; letter-spacing: -1.86px; }
h2 { font-size: 38px; letter-spacing: -0.76px; }
h3 { font-size: 21px; letter-spacing: -0.2px; }
p  { color: var(--muted); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.kicker {
  display: inline-block;
  color: var(--green-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.82px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--bg-warm); }

/* Nav ---------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 16px; color: #4a4a4a; font-weight: 500; }
.nav-links a:hover { color: var(--green); }
.nav-links a[aria-current="page"] { color: var(--green-dark); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* Hero --------------------------------------------------------------------- */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 20px; line-height: 1.6; max-width: 33em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media img {
  width: 100%; border-radius: 18px; object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(36,80,66,.45);
}

/* Generic section ---------------------------------------------------------- */
.section { padding: 100px 0; }
.section-warm { background: var(--bg-warm); }
.section-white { background: var(--surface); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.section-head h2 { margin-bottom: 22px; }
.prose p { font-size: 19px; line-height: 1.7; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Feature cards ------------------------------------------------------------ */
.features-head { text-align: center; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 32px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: 0 18px 40px -24px rgba(36,80,66,.35); transform: translateY(-2px); border-color: #d9d3c6; }
.card svg { margin-bottom: 20px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 17px; line-height: 1.6; }

/* CTA ---------------------------------------------------------------------- */
.cta { background: var(--green-dark); padding: 96px 0; text-align: center; }
.cta h2 { color: #fff; max-width: 720px; margin: 0 auto 16px; }
.cta p { color: rgba(255,255,255,.78); font-size: 19px; margin-bottom: 32px; }

/* Footer ------------------------------------------------------------------- */
.footer { background: var(--green-dark); color: rgba(255,255,255,.78); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-brand .brand-name { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: 16px; max-width: 30em; }
.footer h4 { color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,.82); font-size: 16px; }
.footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 22px; }

/* Legal / content pages ---------------------------------------------------- */
.page-hero { background: var(--bg-warm); padding: 72px 0 56px; text-align: center; }
.page-hero h1 { font-size: 46px; letter-spacing: -1.2px; margin-bottom: 12px; }
.page-hero .updated { color: var(--muted); font-size: 15px; }
.doc { max-width: 760px; margin: 0 auto; padding: 64px 0 88px; }
.doc .intro { font-size: 19px; color: var(--body); margin-bottom: 8px; }
.doc h2 { font-size: 24px; letter-spacing: -0.4px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p { font-size: 17px; line-height: 1.7; color: var(--body); margin-bottom: 16px; }
.doc ul { margin: 0 0 16px 22px; }
.doc li { font-size: 17px; line-height: 1.7; color: var(--body); margin-bottom: 8px; }
.doc a { color: var(--green); text-decoration: underline; }
.doc a:hover { color: var(--green-dark); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
  h1 { font-size: 44px; letter-spacing: -1.2px; }
  h2 { font-size: 30px; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .section { padding: 68px 0; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 18px 28px; gap: 18px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  h1 { font-size: 36px; }
  .container { padding: 0 20px; }
  .hero-actions .btn, .cta .btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

/* ===========================================================================
   Inner-page components (About / Platform / Contact)
   =========================================================================== */

/* Sub-hero (beige page intro) */
.subhero { background: var(--bg-warm); padding: 84px 0 72px; }
.subhero h1 { margin-bottom: 20px; }
.subhero .lead { font-size: 21px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.subhero .underline { width: 64px; height: 4px; background: var(--green-mint); border-radius: 2px; margin-top: 8px; }
.subhero .hero-actions { margin-top: 28px; }

/* Footer brand mark */
.brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brand-row .mark { width: 30px; height: 30px; border-radius: 7px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; }
.brand-row .brand-name { margin-bottom: 0; }

/* About — Our Story prose + beliefs */
.story { max-width: 760px; margin: 0 auto; }
.story h2 { text-align: center; margin-bottom: 28px; }
.story p { font-size: 18px; line-height: 1.75; color: var(--body); margin-bottom: 18px; }
.beliefs-head { text-align: center; margin-bottom: 48px; }
.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.belief { border-top: 3px solid var(--green-mint); padding-top: 20px; }
.belief h3 { margin-bottom: 12px; }
.belief p { font-size: 16px; line-height: 1.65; color: var(--body); }

/* Soft (mint) CTA variant */
.cta-soft { background: var(--green-mint); padding: 84px 0; text-align: center; }
.cta-soft h2 { color: var(--green-dark); max-width: 720px; margin: 0 auto 24px; }
.cta-soft .btn-primary { background: var(--green-dark); }
.cta-soft .btn-primary:hover { background: #1b3d32; }

/* Platform — alternating feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0; }
.feature-band-head { text-align: center; max-width: 760px; margin: 0 auto; padding: 72px 0; }
.feature-band-head h2 { margin-bottom: 16px; }
.feature-band-head p { font-size: 18px; line-height: 1.7; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row h2 { margin-bottom: 16px; }
.feature-row p { font-size: 18px; line-height: 1.7; margin-bottom: 16px; }
.feature-row .shot { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(36,80,66,.4); }
.callout { border-left: 3px solid var(--green-mint); padding: 6px 0 6px 18px; color: var(--green); font-size: 17px; font-style: italic; margin-top: 8px; }

/* Platform — two-up text + foundation */
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 64px 0 16px; }
.twoup h3, .foundation h3 { font-size: 22px; margin-bottom: 12px; }
.twoup p, .foundation p { font-size: 17px; line-height: 1.7; color: var(--body); }
.foundation { padding: 48px 0 8px; max-width: 820px; }

/* Pricing */
.pricing-head { text-align: center; max-width: 720px; margin: 0 auto 16px; }
.pricing-note { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 48px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; position: relative; }
.tier.popular { border-color: var(--green); box-shadow: 0 24px 50px -30px rgba(36,80,66,.45); }
.tier .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.tier h3 { font-size: 22px; margin-bottom: 10px; }
.tier .tier-desc { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.tier .plus { font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--green); text-transform: uppercase; margin-bottom: 12px; }
.tier ul { list-style: none; margin-bottom: 24px; }
.tier li { font-size: 15px; line-height: 1.5; color: var(--body); padding-left: 24px; position: relative; margin-bottom: 11px; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.tier .btn { width: 100%; text-align: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; padding: 64px 0 96px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 40px 36px; box-shadow: 0 24px 50px -36px rgba(36,80,66,.4); }
.form-card h2 { margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fdfdfc; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(50,111,89,.12); }
.field textarea { resize: vertical; min-height: 110px; }
.contact-aside p { font-size: 18px; line-height: 1.7; color: var(--body); }
.contact-aside hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.contact-aside h3 { font-size: 20px; margin-bottom: 10px; }
.contact-aside .email { color: var(--green); font-weight: 600; font-size: 17px; }
.contact-aside .email:hover { color: var(--green-dark); }

@media (max-width: 900px) {
  .beliefs { grid-template-columns: 1fr; gap: 28px; }
  .feature-row, .feature-row.reverse .feature-text { grid-template-columns: 1fr; gap: 28px; order: 0; }
  .feature-row .feature-media { order: -1; }
  .twoup { grid-template-columns: 1fr; gap: 32px; }
  .tiers { grid-template-columns: 1fr; gap: 28px; }
  .tier.popular { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
