/* ===== TimeFlow marketing site ===== */

:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --surface-2: #eef2ee;
  --surface-3: #e4eae4;
  --border: #d6ddd6;
  --border-strong: #c2ccc2;

  --text: #1c2620;
  --text-2: #4a574e;
  --text-3: #7c887e;

  --green-deep: #1f4d33;     /* "Time" */
  --green: #4a7c59;          /* accent */
  --green-mid: #5e9b6e;
  --green-bright: #7db890;   /* "Flow", button fills */
  --green-dim: #d8ebdf;
  --green-wash: #eef6f0;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(31, 77, 51, 0.06);
  --shadow: 0 8px 30px rgba(31, 77, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(31, 77, 51, 0.16);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-deep); }

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

/* ===== Brand wordmark ===== */
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-logo {
  height: 42px; width: auto; display: block;
}
.brand-mark { font-family: var(--font-serif); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark.small { font-size: 22px; }
.brand-time { color: var(--green-deep); }
.brand-flow { color: var(--green-bright); }
.brand-sub {
  font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
  margin-top: 3px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

.btn-primary { background: var(--green-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #173a27; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-ghost { color: var(--green-deep); background: transparent; }
.btn-ghost:hover { color: var(--green-deep); background: var(--green-dim); }

.btn-outline { background: var(--surface); color: var(--green-deep); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 244, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--green-deep); }
.nav a.btn-primary { color: #fff; }
.nav a.btn-primary:hover { color: #fff; }
.nav a.btn-outline { color: var(--green-deep); }
.nav a.btn-outline:hover { color: var(--green-deep); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { padding: 84px 0 72px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.eyebrow.center { text-align: center; }

.hero h1 {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.04; letter-spacing: -0.02em; color: var(--green-deep); margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--green-bright); }

.lede { font-size: 19px; color: var(--text-2); max-width: 30em; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: 14px; color: var(--text-3); font-weight: 500; }

/* Hero visual: faux app window */
.hero-visual { position: relative; }
.window {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.window-bar .dot:first-child { background: #e0a3a0; }
.window-bar .dot:nth-child(2) { background: #e6cd9a; }
.window-bar .dot:nth-child(3) { background: #9fc7ad; }
.window-title {
  margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.window-body { padding: 14px; }

.review-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 10px;
}
.review-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tag {
  align-self: flex-start; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px; background: var(--green-dim); color: var(--green-deep);
}
.tag-alt { background: #e4e9f5; color: #3a4f86; }
.tag-alt2 { background: #f2e8dc; color: #8a6a3e; }
.review-desc { font-size: 14px; color: var(--text-2); }
.review-time { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--green-deep); }

.review-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 6px 4px; margin-top: 4px;
}
.suggested { font-size: 13px; color: var(--text-3); }
.approve {
  font-size: 13px; font-weight: 600; color: #fff; background: var(--green-deep);
  padding: 7px 14px; border-radius: var(--radius);
}

.float-card {
  position: absolute; bottom: -18px; left: -22px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 100px; box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.float-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(125,184,144,.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125,184,144,.6); }
  70% { box-shadow: 0 0 0 10px rgba(125,184,144,0); }
  100% { box-shadow: 0 0 0 0 rgba(125,184,144,0); }
}

/* ===== Trust strip ===== */
.trust { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--green-wash); }
.trust-label { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 26px; }
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--green-deep); }
.stat span { font-size: 14px; color: var(--text-2); }

/* ===== Section primitives ===== */
.section-title {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12; letter-spacing: -0.015em; color: var(--green-deep);
}
.section-title.center { text-align: center; }
.section-lede { font-size: 18px; color: var(--text-2); }

/* ===== Value ===== */
.value { padding: 88px 0; }
.value-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.value .section-title { margin-bottom: 22px; }
.value .section-lede em { color: var(--green); font-style: italic; }

/* ===== Impact stat band ===== */
.impact {
  padding: 84px 0;
  text-align: center;
  color: #fff;
  background: var(--green-deep);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(125, 184, 144, .22), transparent 55%),
    radial-gradient(circle at 85% 95%, rgba(94, 155, 110, .22), transparent 50%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.impact-inner { max-width: 780px; margin: 0 auto; }
.impact-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-bright); margin-bottom: 14px;
}
.impact-figure {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(72px, 13vw, 132px); line-height: .95; letter-spacing: -0.02em;
}
.impact-upto {
  font-size: 0.34em; font-weight: 500; color: var(--green-bright);
  display: inline-block; vertical-align: middle; margin-right: 0.18em;
  letter-spacing: 0; transform: translateY(-0.15em);
}
.impact-headline {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(22px, 3vw, 32px); margin-top: 6px;
}
.impact-sub { font-size: 18px; color: rgba(255, 255, 255, .82); margin-top: 20px; }
.impact-note { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 18px; }

/* ===== Features ===== */
.features { padding: 88px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features .section-title { margin: 6px 0 56px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-bright); }
.feature-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--green-deep); background: var(--green-dim);
  border-radius: 12px; margin-bottom: 18px;
}
.feature h3 { font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--text-2); }

/* ===== How it works ===== */
.how { padding: 88px 0; }
.how .section-title { margin: 6px 0 56px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-deep); color: #fff; font-family: var(--font-serif);
  font-size: 20px; font-weight: 600; margin-bottom: 18px;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.step p { font-size: 15px; color: var(--text-2); }

/* ===== Integrations ===== */
.integrations { padding: 80px 0; background: var(--green-wash); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.integrations-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.integrations-copy .section-title { margin: 6px 0 18px; }
.integration-cards { display: flex; flex-direction: column; gap: 14px; }
.integration {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.integration-name { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--green-deep); }
.badge { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 100px; letter-spacing: .02em; }
.badge-live { background: var(--green-deep); color: #fff; }
.badge-soon { background: var(--surface-3); color: var(--text-3); }

/* ===== Security ===== */
.security { padding: 88px 0; }
.security .section-title { margin: 6px 0 56px; }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.security-item {
  padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--green-bright);
}
.security-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--green-deep); }
.security-item p { font-size: 15px; color: var(--text-2); }

/* ===== CTA ===== */
.cta { padding: 96px 0; }
.cta-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: var(--green-deep); color: #fff;
  border-radius: var(--radius-lg); padding: 64px 40px;
  box-shadow: var(--shadow-lg);
  background-image: radial-gradient(circle at 20% 0%, rgba(125,184,144,.28), transparent 55%),
                    radial-gradient(circle at 90% 100%, rgba(94,155,110,.30), transparent 50%);
}
.cta h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; margin-bottom: 16px; }
.cta p { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.cta .btn-primary { background: var(--green-bright); color: var(--green-deep); }
.cta .btn-primary:hover { background: #92c8a3; color: var(--green-deep); }
.cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.cta-note { font-size: 14px; color: rgba(255,255,255,.6) !important; margin-bottom: 0 !important; }

/* ===== Footer ===== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { font-size: 15px; color: var(--text-2); margin-top: 12px; max-width: 24em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--green-deep); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}

/* ===== Legal / long-form pages ===== */
.legal { padding: 52px 0 88px; }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal-back { margin-bottom: 26px; font-size: 14px; font-weight: 500; }
.legal-back a { color: var(--text-2); }
.legal-back a:hover { color: var(--green-deep); }
.legal h1 {
  font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(32px, 4vw, 46px); color: var(--green-deep); margin-bottom: 10px;
}
.legal-dates { color: var(--text-3); font-size: 14px; margin-bottom: 34px; }
.legal h2 {
  font-family: var(--font-serif); font-weight: 600; font-size: 23px; color: var(--green-deep);
  margin: 42px 0 12px; padding-top: 26px; border-top: 1px solid var(--border);
}
.legal h3 { font-size: 17px; font-weight: 600; color: var(--green); margin: 26px 0 6px; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; }
.legal p { margin-bottom: 14px; }
.legal .lead { font-size: 18px; color: var(--text); }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal li { margin: 6px 0; }
.legal ul ul { margin-top: 8px; margin-bottom: 0; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--green); text-decoration: underline; }
.legal a:hover { color: var(--green-deep); }

/* ===== Contact modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(20, 38, 28, 0.55); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.open { opacity: 1; }

.modal {
  position: relative; width: 100%; max-width: 520px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 36px; max-height: calc(100vh - 48px); overflow-y: auto;
  transform: translateY(12px) scale(.98); transition: transform .22s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 8px; background: transparent;
  font-size: 24px; line-height: 1; color: var(--text-3);
}
.modal-close:hover { background: var(--surface-3); color: var(--text); }

.modal-title { font-family: var(--font-serif); font-weight: 600; font-size: 28px; color: var(--green-deep); margin-bottom: 8px; }
.modal-sub { font-size: 15px; color: var(--text-2); margin-bottom: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input {
  font-family: var(--font-sans); font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }

.form-error { color: #b34a36; font-size: 14px; font-weight: 500; margin-top: 14px; }
.modal-submit { width: 100%; margin-top: 20px; }
.modal-fineprint { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 12px; }

.modal-submit:disabled { opacity: .65; cursor: progress; }

/* Honeypot field: visually hidden, off-screen, not focusable */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; overflow: hidden;
}

/* Success state */
.modal-success { text-align: center; padding: 14px 6px 6px; }
.modal-success .modal-title { margin-bottom: 10px; }
.modal-success .modal-sub { margin-bottom: 26px; }
.success-check {
  width: 60px; height: 60px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; background: var(--green-deep);
  border-radius: 50%; box-shadow: 0 6px 18px rgba(31, 77, 51, .28);
}

body.modal-open { overflow: hidden; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; }
  .feature-grid, .security-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .integrations-inner { grid-template-columns: 1fr; gap: 32px; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); padding: 22px 24px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .hero { padding: 56px 0 48px; }
  .feature-grid, .security-grid, .steps { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .modal { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
}
