/* ─── Design Tokens (shared with app) ───────────────────────────────────── */
:root {
  --brand:        #5d9f40;
  --brand-dark:   #4a8432;
  --brand-light:  #e6f4dd;
  --brand-xlight: #f3faee;
  --blue:         #0052CC;
  --blue-light:   #DEEBFF;
  --text:         #172B4D;
  --text-mid:     #42526E;
  --text-light:   #6B778C;
  --border:       #DFE1E6;
  --bg:           #FFFFFF;
  --bg-alt:       #F8FAFB;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.09);
  --shadow-md:    0 4px 18px rgba(0,0,0,.11);
  --shadow-lg:    0 12px 44px rgba(0,0,0,.14);
  --radius:       10px;
  --tr:           180ms ease;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ─── Container ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--tr), transform var(--tr);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-mid);
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 8px;
  border: 2px solid var(--border);
  transition: border-color var(--tr), color var(--tr), transform var(--tr);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-lg  { font-size: 1.05rem; padding: 13px 30px; border-radius: 10px; }
.btn-xl  { font-size: 1.1rem;  padding: 15px 38px; border-radius: 12px; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.01em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  color: var(--text-mid);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 6px;
  transition: color var(--tr), background var(--tr);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  background: var(--brand-xlight);
}
.nav-cta { margin-left: auto; font-size: .88rem; padding: 7px 18px; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 108px;
  background: linear-gradient(160deg, #f6ffee 0%, var(--brand-xlight) 35%, #ebf4ff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .4;
}
.hero-blob-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, #c2eaab 0%, transparent 70%);
  top: -220px; right: -80px;
  animation: blob-drift 14s ease-in-out infinite alternate;
}
.hero-blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #b9d4ff 0%, transparent 70%);
  bottom: -160px; left: -80px;
  animation: blob-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(28px, 18px) scale(1.07); }
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.13;
  color: var(--text);
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: .83rem;
  color: var(--text-mid);
}
.hero-proof span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-proof span::before { content: '✓'; color: var(--brand); font-weight: 700; }

/* ─── Hero mockup shell ──────────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.mockup-shell {
  background: var(--bg);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,.17), 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
  width: 100%;
  max-width: 490px;
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform .5s ease;
}
.mockup-shell:hover { transform: rotateY(0deg) rotateX(0deg); }
.mockup-titlebar {
  background: #efeff1;
  border-bottom: 1px solid #ddd;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccc;
}
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #28C840; }
.mockup-url {
  font-size: .73rem;
  color: #888;
  margin-left: 10px;
  background: rgba(0,0,0,.06);
  padding: 3px 12px;
  border-radius: 10px;
  flex: 1;
  text-align: center;
}
.mockup-app { display: flex; height: 265px; }
.mockup-sidebar {
  width: 122px;
  background: #fafafa;
  border-right: 1px solid var(--border);
  padding: 10px 8px;
  flex-shrink: 0;
}
.mockup-sidebar-title {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: 8px;
  padding: 0 3px;
}
.mockup-template {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
  transition: transform .2s;
  cursor: grab;
}
.mockup-template span { font-weight: 400; opacity: .85; }
.mockup-template.dragging { opacity: .45; transform: scale(.96); }
.mt1 { background-color: #4C9AFF; }
.mt2 { background-color: #36B37E; }
.mt3 { background-color: #FF8B00; }
.mt4 { background-color: #FF5630; }

.mockup-cal { flex: 1; padding: 10px; overflow: hidden; }
.mockup-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
}
.mockup-cal-nav { color: var(--text-light); font-size: .85rem; padding: 0 3px; cursor: pointer; }
.mockup-cal-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.mockup-cal-days span {
  font-size: .62rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
}
.mockup-cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}
.mockup-cell {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px;
  min-height: 58px;
}
.mockup-cell.today  { background: var(--blue-light); border-color: #4C9AFF; }
.mockup-cell.droptgt { border: 2px dashed var(--brand); background: var(--brand-xlight); }
.mockup-drop-hint {
  font-size: .6rem;
  color: var(--brand);
  font-weight: 600;
  text-align: center;
  padding-top: 12px;
}
.mockup-date {
  font-size: .62rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 2px;
}
.mockup-bar {
  font-size: .58rem;
  font-weight: 600;
  color: #fff;
  padding: 1px 3px;
  border-radius: 2px;
  margin-bottom: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mockup-bar.is-mine {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,.11) 0px, rgba(0,0,0,.11) 2px,
    transparent 2px, transparent 6px
  );
  filter: brightness(.88);
}
.mc1 { background-color: #4C9AFF; }
.mc2 { background-color: #36B37E; }
.mc3 { background-color: #FF8B00; }
.mc4 { background-color: #FF5630; }

/* ─── Section base ───────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-mid);
}

/* ─── Features grid ──────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: .92rem; color: var(--text-mid); line-height: 1.65; }

/* ─── How it works ───────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  max-width: 920px;
  margin: 0 auto;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 5px 18px rgba(93,159,64,.38);
  flex-shrink: 0;
}
.step-body h3  { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-body p   { font-size: .92rem; color: var(--text-mid); line-height: 1.65; }
.step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--brand), var(--blue));
  margin-top: 26px;
  flex-shrink: 0;
  opacity: .3;
}

/* ─── Showcase ───────────────────────────────────────────────────────────── */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row-flip { direction: rtl; }
.showcase-row-flip > * { direction: ltr; }

.showcase-tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.showcase-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.showcase-text p {
  font-size: .97rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ─── Showcase mockup: Templates ────────────────────────────────────────── */
.showcase-mock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sm-tmpl { display: flex; height: 230px; }
.sm-tmpl-sidebar {
  width: 134px;
  background: #fafafa;
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  flex-shrink: 0;
}
.sm-heading {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: 10px;
}
.sm-tpl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}
.sm-tpl-dur { font-weight: 400; opacity: .85; font-size: .66rem; }
.sm-tpl.dragging { opacity: .4; transform: scale(.96) translateY(-2px); }
.st1 { background-color: #4C9AFF; }
.st2 { background-color: #36B37E; }
.st3 { background-color: #FF8B00; }
.st4 { background-color: #FF5630; }

.sm-tmpl-day {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sm-day-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.sm-entry {
  padding: 5px 8px;
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 600;
  color: #fff;
}
.sm-dropzone {
  border: 2px dashed var(--brand);
  border-radius: 6px;
  padding: 9px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-xlight);
  animation: pulse-zone 2s ease-in-out infinite;
}
@keyframes pulse-zone {
  0%, 100% { opacity: 1; border-color: var(--brand); }
  50%       { opacity: .6; border-color: var(--brand-dark); }
}
.sm-dropzone span { font-size: .7rem; font-weight: 600; color: var(--brand); }

/* ─── Showcase mockup: Statistics ───────────────────────────────────────── */
.sm-stats { padding: 20px 22px; }
.sm-stats-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.sm-stats-lbl { font-size: .76rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; }
.sm-stats-tot { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.sm-bars { display: flex; flex-direction: column; gap: 9px; }
.sm-bar-row { display: flex; align-items: center; gap: 10px; }
.sm-bar-day { width: 26px; font-size: .72rem; font-weight: 600; color: var(--text-light); }
.sm-bar-track {
  flex: 1; height: 13px;
  background: var(--bg-alt);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sm-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--brand), #7ecf54);
  transition: width .6s ease;
}
.sm-bar-fill.blue  { background: linear-gradient(90deg, #4C9AFF, #7ab8ff); }
.sm-bar-fill.empty { background: #e4e8ed; }
.sm-bar-val { width: 52px; font-size: .71rem; color: var(--text-light); text-align: right; }

/* ─── Showcase mockup: Calendar ─────────────────────────────────────────── */
.sm-cal { padding: 14px 16px; }
.sm-cal-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  margin-bottom: 10px;
  color: var(--text-mid);
}
.sm-cal-hdr strong { color: var(--text); }
.sm-cal-dow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-bottom: 5px;
}
.sm-cal-dow span {
  font-size: .62rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
}
.sm-cal-rows { display: flex; flex-direction: column; gap: 3px; }
.sm-cal-row  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.sm-cell {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px;
  min-height: 50px;
}
.sm-cell.sm-today  { background: var(--blue-light); border-color: #4C9AFF; }
.sm-cd { font-size: .6rem; font-weight: 700; color: var(--text-light); margin-bottom: 2px; }
.sm-cb {
  font-size: .57rem;
  font-weight: 600;
  color: #fff;
  padding: 1px 3px;
  border-radius: 2px;
  margin-bottom: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sm-cc1 { background-color: #4C9AFF; }
.sm-cc2 { background-color: #36B37E; }
.sm-cc3 { background-color: #FF8B00; }
.sm-cc4 { background-color: #FF5630; }
.sm-cc5 { background-color: #6554C0; }
.sm-mine {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,.11) 0px, rgba(0,0,0,.11) 2px,
    transparent 2px, transparent 5px
  );
  filter: brightness(.88);
}

/* ─── CTA bottom ─────────────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #1b3d1b 0%, #2e6923 50%, #0b3e63 100%);
  color: #fff;
}
.cta-blob {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse at 55% 50%, rgba(93,159,64,.3) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; text-align: center; }
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.025em;
}
.cta-section > .container > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 38px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-primary {
  background: var(--brand);
  box-shadow: 0 8px 30px rgba(93,159,64,.45);
}
.cta-section .btn-primary:hover { background: #6cba48; }
.cta-note {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  margin-top: 18px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: #0e1c0e;
  color: rgba(255,255,255,.55);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  margin-right: auto;
}
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: color var(--tr);
  text-decoration: none;
}
.footer nav a:hover { color: #fff; text-decoration: none; }
.footer-legal {
  width: 100%;
  font-size: .74rem;
  color: rgba(255,255,255,.28);
  margin-top: 6px;
}

/* ─── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }
.features-grid .feature-card:nth-child(2) { transition-delay: .08s; }
.features-grid .feature-card:nth-child(3) { transition-delay: .16s; }
.features-grid .feature-card:nth-child(4) { transition-delay: .06s; }
.features-grid .feature-card:nth-child(5) { transition-delay: .14s; }
.features-grid .feature-card:nth-child(6) { transition-delay: .22s; }
.steps .step:nth-child(3) { transition-delay: .12s; }
.steps .step:nth-child(5) { transition-delay: .24s; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner   { grid-template-columns: 1fr; }
  .hero-visual  { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .showcase-row,
  .showcase-row-flip { grid-template-columns: 1fr; direction: ltr; }
  .showcase-visual { order: -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; gap: 16px; }
  .step-connector { width: 2px; height: 28px; margin: 0; }
  .step { max-width: 360px; }
  .hero-proof { flex-direction: column; gap: 8px; }
}
