/* ============================================================
   Kololad — Visual Routine Timer
   Static marketing site styles
   ============================================================ */

:root {
  --primary: #C7363C;
  --primary-hover: #A92B31;
  --blush: #FBECEE;
  --bg: #FCFAF8;
  --card: #FFFFFF;
  --text: #1D1B1A;
  --muted: #68615D;
  --divider: #E8E1DD;

  --maxw: 1120px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shadow-soft: 0 18px 40px -24px rgba(29, 27, 26, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--blush);
  color: var(--primary);
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
}

p {
  margin: 0;
}

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

.narrow {
  max-width: 760px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--card);
  color: var(--text);
  border-color: var(--divider);
}

.btn-secondary:hover {
  border-color: rgba(199, 54, 60, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--primary-hover);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(252, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px -4px rgba(199, 54, 60, 0.35);
  flex-shrink: 0;
}

.brand-name {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 80px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background-color: var(--card);
  border: 1px solid var(--divider);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-visual {
  margin-bottom: 48px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(29, 27, 26, 0.4);
}

/* ---------- Sections ---------- */
section {
  position: relative;
}

.section {
  padding: 96px 0;
}

.section-band {
  background-color: var(--card);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.section-blush {
  background-color: var(--blush);
}

.section-head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.section-head p {
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(199, 54, 60, 0.18);
}

.feature-media {
  background-color: var(--blush);
  padding: 28px 28px 0;
  display: flex;
  justify-content: center;
}

.feature-media img {
  width: 100%;
  max-width: 230px;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 0 0 rgba(0, 0, 0, 0.04), 0 24px 40px -28px rgba(29, 27, 26, 0.45);
}

.feature-body {
  padding: 28px 30px 34px;
}

.feature-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.feature-body p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Value props ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.value-item h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.value-item p {
  color: var(--muted);
  font-size: 1rem;
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  border-radius: 18px;
  background-color: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
}

/* ---------- MVP note ---------- */
.note {
  text-align: center;
  max-width: 58ch;
  margin: 0 auto;
}

.note h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 18px;
}

.note p {
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- Closing CTA ---------- */
.cta-card {
  max-width: 880px;
  margin: 0 auto;
  background-color: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background-color: var(--primary);
}

.cta-card h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 18px;
}

.cta-card p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 32px;
}

/* ---------- Legal / content pages ---------- */
.page-hero {
  padding: 72px 0 28px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin-bottom: 14px;
}

.page-hero .updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 0 96px;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 44px 0 14px;
}

.prose p {
  color: var(--muted);
  margin-bottom: 16px;
}

.prose ul {
  color: var(--muted);
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--primary);
  font-weight: 500;
}

.prose a:hover {
  color: var(--primary-hover);
}

/* ---------- Support ---------- */
.support-card {
  max-width: 620px;
  margin: 0 auto 48px;
  background-color: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  text-align: center;
}

.support-card .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.support-card .email {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.support-list {
  max-width: 620px;
  margin: 0 auto;
}

.support-list h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  text-align: center;
}

.support-list ul {
  color: var(--muted);
  padding-left: 22px;
}

.support-list li {
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--card);
  border-top: 1px solid var(--divider);
  padding: 56px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-bottom: 22px;
}

.footer-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-fine {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.75;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .value-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .header-inner {
    height: 64px;
    gap: 12px;
  }
  .brand-name {
    font-size: 20px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .site-nav {
    gap: 15px;
  }
  .site-nav a {
    font-size: 14px;
  }
  .section {
    padding: 72px 0;
  }
  .hero {
    padding: 56px 0 24px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cta-card {
    padding: 56px 26px;
  }
}

@media (max-width: 400px) {
  .header-inner {
    gap: 10px;
  }
  .brand {
    gap: 8px;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .site-nav {
    gap: 13px;
  }
  .site-nav a {
    font-size: 13px;
  }
}
