/* GluDoz public site. */
:root {
  --primary: #0f766e;
  --primary-600: #0d6560;
  --primary-50: #e6f4f2;
  --ink: #12262b;
  --muted: #55676e;
  --line: #dfe6e8;
  --bg-alt: #f3f7f7;
  --dark: #0c2b2a;
  --green: #12a150;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
a { color: var(--primary); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.wrap { width: min(1160px, 100% - 2.5rem); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 2.5rem); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-600); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.ghost:hover { border-color: #b8c6ca; }
.btn.lg { padding: .85rem 1.4rem; font-size: 1rem; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.links { display: flex; gap: 1.3rem; margin-left: 1rem; }
.links a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: .6rem; }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% 10%, #d8efeb 0%, transparent 60%), linear-gradient(180deg, #f6fbfa, #fff); padding: 4.5rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; margin-bottom: .7rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.fine { font-size: .85rem; color: var(--muted); }

/* Phone frame around real app screenshots */
.phone { justify-self: center; margin: 0; width: 300px; max-width: 100%; border-radius: 46px; background: #0f1c1f; padding: 10px; box-shadow: 0 30px 60px -20px rgba(15, 60, 58, .35), 0 0 0 1px rgba(0,0,0,.05); }
.phone img { display: block; width: 100%; height: auto; border-radius: 37px; }
.phone.sm { width: 100%; max-width: 240px; border-radius: 38px; padding: 8px; box-shadow: 0 20px 40px -20px rgba(15, 60, 58, .35); }
.phone.sm img { border-radius: 30px; }
.shots { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.shots li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.shots h3 { margin: 1.1rem 0 .3rem; }
.shots p { color: var(--muted); font-size: .93rem; margin: 0; max-width: 16rem; }

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #e3efed; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: #7fd3c8; }
.section.dark a { color: #7fd3c8; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 40rem; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }

.steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: none; }
.steps li { border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; background: #fff; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-50); color: var(--primary); font-weight: 800; margin-bottom: .9rem; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.features li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; }
.features p { color: var(--muted); font-size: .95rem; margin: 0; }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.principles div { border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 1.3rem; }
.principles p { font-size: .95rem; color: #c3d6d3; margin: 0; }

details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: .7rem 0 0; }

/* Lead form */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.lead-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .9rem; }
.lead-form input:not([type=checkbox]), .lead-form textarea { display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: .95rem; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--primary); }
.lead-form .invalid { border-color: #d92d20 !important; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.consent { display: flex !important; gap: .55rem; align-items: flex-start; font-weight: 500 !important; color: var(--muted); }
.consent input { margin-top: .3rem; }
.form-status { margin: .8rem 0 0; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #d92d20; }

/* Footer */
.foot { background: #0a2221; color: #b8cdca; padding: 3rem 0 1.5rem; font-size: .95rem; }
.foot .brand { color: #fff; margin-bottom: .6rem; }
.foot a { color: #b8cdca; display: block; text-decoration: none; margin-bottom: .35rem; }
.foot a:hover { color: #fff; }
.foot h4 { color: #fff; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.foot .brand { display: inline-flex; }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }

/* Legal page */
.legal { padding: 3rem 0 5rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.draft { background: #fef4e6; color: #b54708; border: 1px solid #f7d4a5; border-radius: 12px; padding: .9rem 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }

@media (max-width: 980px) {
  .shots { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .links { display: none; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .steps, .principles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { font-size: 16px; }
  .nav-cta .ghost { display: none; }
  .steps, .principles, .features, .grid2, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
  .section { padding: 3.5rem 0; }
}

/* Cookie consent bar created by /assets/analytics.js (only when GA is set up). Scoped to the
   dialog so the demo form's label.consent is not affected. */
.consent-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .9rem 1rem; background: #fff; color: var(--ink, #10252a); border: 1px solid var(--line, #dde6e8); border-radius: 14px; box-shadow: 0 12px 32px rgba(16, 37, 42, .18); }
.consent-bar p { flex: 1 1 320px; margin: 0; font-size: .92rem; line-height: 1.45; }
.consent-bar p a { color: var(--primary, #0f766e); font-weight: 600; }
.consent-bar .btn { padding: .5rem 1rem; }
@media (max-width: 560px) {
  .consent-bar { left: .5rem; right: .5rem; bottom: .5rem; }
  .consent-bar .btn { flex: 1; }
}
