/* ============================================================
   Web Whittle — light theme, matched to the logo
   Navy + royal blue with warm wood/tan accents
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand (sampled from the logo) */
  --navy:        #22314c;
  --navy-deep:   #1a2740;
  --blue:        #2b6fd6;
  --blue-deep:   #1f5dc0;
  --blue-soft:   #eaf2fd;
  --wood:        #d9a76c;
  --wood-dark:   #b67e44;
  --wood-soft:   #f7edde;

  /* Surfaces & text */
  --bg:          #f5f8fd;
  --bg-warm:     #fbf7f0;
  --surface:     #ffffff;
  --text:        #2a3444;
  --muted:       #69748a;
  --faint:       #97a1b4;
  --border:      #e4eaf3;
  --border-strong: #d3dcec;

  /* Type */
  --font-display: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  --font-sans:    'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Geometry */
  --max-width: 1180px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(34, 49, 76, 0.06);
  --shadow:    0 12px 30px -12px rgba(34, 49, 76, 0.18);
  --shadow-blue: 0 14px 30px -10px rgba(43, 111, 214, 0.45);
}

html { scroll-behavior: smooth; }

body {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== Soft background decoration ===== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(43,111,214,0.10), transparent 70%),
    radial-gradient(55% 45% at 0% 10%, rgba(217,167,108,0.14), transparent 70%),
    var(--bg);
}
.bg-mesh .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,49,76,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,49,76,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none !important; }
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 38px; width: auto; }

.nav__links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}
.nav__links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--blue); }

.nav__cta {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow-blue);
  transition: transform 0.12s ease, background 0.2s ease;
}
.nav__cta:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

.btn--ghost {
  color: var(--navy);
  background: #fff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--wood {
  color: #fff;
  background: var(--wood-dark);
  box-shadow: 0 12px 26px -12px rgba(182,126,68,0.7);
}
.btn--wood:hover { background: #a06f3a; }

/* ===== Hero ===== */
.hero { padding: 5.5rem 0 4rem; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
}
.hero__copy { max-width: 620px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wood-dark);
  background: var(--wood-soft);
  border: 1px solid #ecd9bd;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wood-dark);
  box-shadow: 0 0 0 0 rgba(182,126,68,0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(182,126,68,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(182,126,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(182,126,68,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.hero__title .accent { color: var(--blue); }

.hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  margin: 1.25rem 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__art {
  display: grid;
  place-items: center;
}
.hero__art-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, #fff, var(--blue-soft));
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.hero__art-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(217,167,108,0.25), transparent 70%);
  pointer-events: none;
}
.hero__art-card img {
  width: 72%;
  filter: drop-shadow(0 18px 24px rgba(34,49,76,0.18));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  max-width: 560px;
  margin: 2.75rem 0 0;
  padding: 1.1rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stats__item dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.stats__item dd {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--navy);
}
.stats__item dd span { color: var(--blue); }

/* ===== Sections ===== */
.section { padding: 5.5rem 0; position: relative; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--warm { background: var(--bg-warm); border-top: 1px solid #f0e6d6; border-bottom: 1px solid #f0e6d6; }

.section__header { text-align: center; max-width: 680px; margin: 0 auto 3.25rem; }
.section__label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}
.section__description { margin-top: 0.9rem; color: var(--muted); font-size: 1.05rem; }

/* ===== Cards (how it works) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  padding: 1.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card__icon-wrap {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 1.15rem;
}
.card__icon-wrap svg { width: 24px; height: 24px; }
.card__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.card__body { color: var(--muted); font-size: 0.97rem; }

/* ===== Pricing ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1060px;
  margin: 0 auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured {
  border-color: var(--blue);
  box-shadow: 0 22px 50px -22px rgba(43,111,214,0.55);
}
.plan__tag {
  position: absolute;
  top: -0.85rem; left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: var(--shadow-blue);
  white-space: nowrap;
}
.plan__tag--wood { background: var(--wood-dark); box-shadow: 0 8px 20px -6px rgba(182,126,68,0.7); }

.plan__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.plan__tech {
  display: inline-block;
  margin: 0.5rem 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wood-dark);
  background: var(--wood-soft);
  border: 1px solid #ecd9bd;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.plan__tagline { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.4rem;
}
.plan__price small { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; color: var(--faint); }

.plan__cta { width: 100%; justify-content: center; margin-bottom: 1.6rem; }

.plan__features { display: flex; flex-direction: column; flex: 1; }
.plan__features li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.9rem;
  color: var(--text);
  font-size: 0.96rem;
  border-top: 1px solid var(--border);
}
.plan__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.78rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue-soft);
}
.plan__features li::after {
  content: '';
  position: absolute;
  left: 6px; top: 1.08rem;
  width: 7px; height: 4px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.pricing-note {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--faint);
}
.pricing-note a { font-weight: 700; }

/* ===== Care plans ===== */
.care {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.care-card {
  display: flex;
  flex-direction: column;
  padding: 1.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.care-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.care-card--featured { border-color: var(--blue); box-shadow: 0 22px 50px -22px rgba(43,111,214,0.5); }
.care-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.care-card__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.care-card__price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--blue); }
.care-card__price span { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; color: var(--faint); }

/* ===== Templates teaser ===== */
.teaser {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-soft), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.teaser__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.teaser__body { color: var(--muted); margin-bottom: 1.5rem; }
.teaser__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.teaser__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  color: #fff;
}
.teaser__thumb svg { width: 34px; height: 34px; }

/* ===== CTA ===== */
.cta {
  position: relative;
  text-align: center;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 15% 0%, rgba(43,111,214,0.45), transparent 60%),
    radial-gradient(40% 70% at 90% 100%, rgba(217,167,108,0.35), transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .section__label { color: #8fb6f0; }
.cta__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; color: #fff; margin: 0.4rem 0 0.9rem; }
.cta__body { color: #c4cde0; max-width: 540px; margin: 0 auto 2rem; }

/* ===== Footer ===== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer__logo img { height: 34px; width: auto; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { color: var(--navy); font-weight: 600; }
.footer__links a:hover { color: var(--blue); }

/* ============================================================
   Template gallery page
   ============================================================ */
.page-hero {
  text-align: center;
  padding: 4.5rem 0 2.5rem;
}
.page-hero .badge { margin-bottom: 1.2rem; }
.page-hero__title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; color: var(--navy); line-height: 1.1; }
.page-hero__title .accent { color: var(--blue); }
.page-hero__subtitle { max-width: 620px; margin: 1.1rem auto 0; color: var(--muted); font-size: 1.1rem; }

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 1rem;
}
.tpl-card {
  --accent: var(--blue);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.tpl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }

/* Mock website preview inside each card */
.tpl-preview {
  --accent-soft: color-mix(in srgb, var(--accent) 14%, #fff);
  position: relative;
  aspect-ratio: 16 / 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.tpl-chrome {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: #f1f4f9;
  border-bottom: 1px solid var(--border);
}
.tpl-chrome span { width: 9px; height: 9px; border-radius: 50%; background: #cdd6e4; }
.tpl-chrome span:nth-child(1){ background:#f9a8a8; }
.tpl-chrome span:nth-child(2){ background:#f7d488; }
.tpl-chrome span:nth-child(3){ background:#a8e0a8; }
.tpl-chrome .tpl-url {
  margin-left: 8px;
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f2;
}
.tpl-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tpl-hero {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000 18%));
  color: #fff;
}
.tpl-hero__icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.18);
  border-radius: 14px;
}
.tpl-hero__icon svg { width: 30px; height: 30px; }
.tpl-hero__lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tpl-hero__lines i { display: block; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.85); }
.tpl-hero__lines i:nth-child(1){ width: 75%; height: 11px; }
.tpl-hero__lines i:nth-child(2){ width: 55%; opacity: 0.75; }
.tpl-hero__btn { margin-top: 4px; width: 64px; height: 16px; border-radius: 999px; background: #fff; opacity: 0.95; }
.tpl-body {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #fff;
}
.tpl-body .tpl-tile {
  flex: 1;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
}

.tpl-meta { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tpl-cat {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, var(--blue));
  margin-bottom: 0.3rem;
}
.tpl-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.tpl-desc { color: var(--muted); font-size: 0.93rem; flex: 1; margin-bottom: 1.1rem; }
.tpl-card .btn { width: 100%; justify-content: center; }
.tpl-btn { color: #fff; background: var(--accent, var(--blue)); box-shadow: var(--shadow-sm); }
.tpl-btn:hover { filter: brightness(0.93); }
.tpl-use { margin-top: 0.65rem; text-align: center; font-weight: 700; font-size: 0.85rem; color: var(--accent, var(--blue)); }
.tpl-use:hover { text-decoration: underline; }
.tpl-card { cursor: pointer; }

.tpl-foot-note { text-align: center; color: var(--faint); font-size: 0.9rem; margin-top: 2.5rem; }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.backlink:hover { color: var(--blue); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art-card { max-width: 260px; }
  .teaser { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .section { padding: 4rem 0; }
  .stats { grid-template-columns: 1fr; text-align: center; }
  .cta { padding: 2.75rem 1.25rem; }
}
