/*
Theme Name: TimeNest
Theme URI: https://timenest.clevmind.com
Author: Clevmind
Author URI: https://clevmind.com
Description: Modern, lightweight marketing theme for TimeNest — the allowance & screen-time app that helps parents set fair time limits for kids. No public forms, no comments, no bloat. Fast by default.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: timenest
*/

/* -------------------------------------------------
   0. Design tokens
   The "nest" holds time. Warm sand + deep pine teal
   for trust, amber for the time-dial signature motif.
------------------------------------------------- */
:root{
  --bg: #FBF8F3;
  --bg-soft: #F2EBDD;
  --card: #FFFFFF;
  --ink: #1A2E2C;
  --ink-soft: #4A5B58;
  --ink-faint: #7C8B88;

  --brand: #2D6A65;
  --brand-dark: #1F4A47;
  --brand-tint: #E4EFEC;

  --accent: #F4A340;
  --accent-dark: #D9862A;
  --accent-tint: #FCE3B8;

  --line: #E7DFCF;
  --ring: rgba(45,106,101,.14);
  --shadow-sm: 0 2px 10px rgba(26,46,44,.06);
  --shadow-md: 0 10px 30px rgba(26,46,44,.10);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1160px;
}

/* -------------------------------------------------
   1. Reset
------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; cursor: pointer; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.1; font-weight: 600; }
p{ margin: 0 0 1em; color: var(--ink-soft); }

:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------
   2. Layout helpers
------------------------------------------------- */
.wrap{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section{ padding: 96px 0; }
.section--tight{ padding: 64px 0; }
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* -------------------------------------------------
   3. Header
------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251,248,243,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
}
.brand__mark{
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--brand), var(--brand-dark));
  display: grid;
  place-items: center;
}
.brand__mark svg{ width: 18px; height: 18px; }

.nav{ display: flex; align-items: center; gap: 36px; }
.nav__links{ display: flex; gap: 28px; }
.nav__links a{
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav__links a:hover{ color: var(--brand); }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn--primary{ background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover{ background: var(--brand-dark); box-shadow: var(--shadow-md); }
.btn--ghost{ border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover{ border-color: var(--brand); color: var(--brand); }

.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }

/* -------------------------------------------------
   4. Hero + time-dial signature
------------------------------------------------- */
.hero{ padding: 88px 0 40px; }
.hero__grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1{
  font-size: clamp(38px, 4.6vw, 58px);
  color: var(--ink);
  letter-spacing: -.01em;
}
.hero h1 em{
  font-style: normal;
  color: var(--brand);
  position: relative;
}
.hero__lede{ font-size: 19px; max-width: 46ch; }
.hero__actions{ display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__stats{
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stat b{
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink);
}
.hero__stat span{ font-size: 13px; color: var(--ink-faint); }

/* the dial: a nest ring showing remaining allowance */
.dial{
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}
.dial__card{
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}
.dial svg{ width: 100%; height: 100%; transform: rotate(-90deg); }
.dial__track{ fill: none; stroke: var(--bg-soft); stroke-width: 10; }
.dial__progress{
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 754;
  stroke-dashoffset: 754;
  transition: stroke-dashoffset 1.4s cubic-bezier(.22,.9,.3,1);
}
.dial__center{
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.dial__time{ font-family: var(--font-mono); font-size: 34px; font-weight: 600; color: var(--ink); }
.dial__label{ font-size: 13px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.dial__badge{
  position: absolute;
  top: 6%; right: -4%;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.dial__badge .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* -------------------------------------------------
   5. Feature grid
------------------------------------------------- */
.features__head{ max-width: 640px; margin-bottom: 56px; }
.features__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon{
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--brand-tint);
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--brand);
}
.feature h3{ font-size: 19px; margin-bottom: 8px; color: var(--ink); }
.feature p{ font-size: 15px; margin-bottom: 0; }

/* -------------------------------------------------
   6. Emotional / trust band
------------------------------------------------- */
.trust{
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.trust h2{ color: #fff; font-size: clamp(28px, 3vw, 36px); }
.trust p{ color: rgba(255,255,255,.78); font-size: 17px; }
.trust__quote{
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  color: #fff;
}
.trust__quote cite{
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-top: 16px;
}

/* -------------------------------------------------
   7. How it works
------------------------------------------------- */
.steps{ display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.step{ position: relative; padding-top: 8px; }
.step::before{
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--brand);
  background: var(--brand-tint);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.step h3{ font-size: 18px; margin-bottom: 6px; }
.step p{ font-size: 15px; }

/* -------------------------------------------------
   8. CTA
------------------------------------------------- */
.cta{
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}
.cta h2{ font-size: clamp(28px, 3.4vw, 40px); }
.cta__actions{ display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.store-badges{ display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.store-badge{
  display: flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
}
.store-badge small{ display: block; font-size: 11px; opacity: .7; }
.store-badge strong{ font-size: 15px; }

/* -------------------------------------------------
   9. Simple content page (Privacy / Terms etc.)
------------------------------------------------- */
.page-hero{ padding: 64px 0 24px; border-bottom: 1px solid var(--line); }
.page-hero h1{ font-size: clamp(32px, 4vw, 46px); }
.page-hero__meta{ font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.content{ padding: 56px 0 96px; }
.content__body{ max-width: 760px; margin-inline: auto; }
.content__body h2{ font-size: 24px; margin-top: 2em; color: var(--ink); }
.content__body h3{ font-size: 19px; margin-top: 1.6em; color: var(--ink); }
.content__body p, .content__body li{ font-size: 16px; color: var(--ink-soft); }
.content__body ul, .content__body ol{ padding-left: 22px; margin-bottom: 1em; }
.content__body li{ margin-bottom: .4em; list-style: disc; }
.content__body a{ color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------
   10. Footer
------------------------------------------------- */
.site-footer{ border-top: 1px solid var(--line); padding: 56px 0 40px; }
.site-footer__top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.site-footer__brand p{ max-width: 32ch; font-size: 14px; }
.footer-links{ display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4{ font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: 14px; }
.footer-links a{ display: block; font-size: 14px; color: var(--ink-soft); padding: 5px 0; }
.footer-links a:hover{ color: var(--brand); }
.site-footer__bottom{
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------------------------
   11. Responsive
------------------------------------------------- */
@media (max-width: 900px){
  .nav__links, .nav .btn--ghost{ display: none; }
  .nav-toggle{ display: flex; }
  .hero__grid{ grid-template-columns: 1fr; }
  .dial{ order: -1; width: min(300px, 80%); }
  .features__grid{ grid-template-columns: 1fr; }
  .trust{ grid-template-columns: 1fr; padding: 40px 28px; }
  .steps{ grid-template-columns: 1fr; }
  .section{ padding: 64px 0; }
}

.nav.is-open .nav__links{
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--card);
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  gap: 4px;
}
.nav.is-open .nav__links a{ padding: 10px 0; }
