/* TeamTask landing — modern SaaS layout (Zoho Projects-style two-column
 * hero, alternating image-text feature rows, soft glass cards) painted in
 * the same cream / lavender / violet palette used by the iOS app
 * (apps/mobile/src/design/tokens.ts).
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

:root {
  --cream:        #FFFBF1;
  --cream-deep:   #F5EFDF;
  --cream-warm:   #FFF6E4;
  --lavender:     #F4E9FF;
  --coral:        #FF5B5B;
  --coral-deep:   #E84545;
  --violet:       #685AFF;
  --violet-deep:  #4F40E8;
  --violet-soft:  rgba(104, 90, 255, 0.10);
  --sky:          #9CCFFF;
  --sky-deep:     #7BB6F0;
  --emerald:      #2DA86F;
  --emerald-light:#9FE0BC;
  --ink:          #1F1B14;
  --ink-soft:     #5A5347;
  --ink-muted:    #8A8170;
  --hairline:     rgba(31, 27, 20, 0.08);
  --shadow-card:  0 8px 32px rgba(60, 40, 20, 0.08);
  --shadow-cta:   0 12px 28px rgba(104, 90, 255, 0.32);
  --shadow-phone: 0 30px 60px rgba(60, 40, 80, 0.18), 0 8px 18px rgba(60, 40, 80, 0.08);
  --radius-card:  26px;
  --radius-cta:   14px;
  --radius-phone: 44px;
  --radius-pill:  999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--lavender) 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Decorative violet/sky orbs — same vibe as the iOS app's RoleSelectScreen */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
body::before {
  width: 620px; height: 620px;
  top: -200px; right: -200px;
  background: radial-gradient(circle at 30% 30%, rgba(104, 90, 255, 0.32) 0%, rgba(104, 90, 255, 0) 70%);
}
body::after {
  width: 540px; height: 540px;
  bottom: -180px; left: -180px;
  background: radial-gradient(circle at 70% 30%, rgba(156, 207, 255, 0.45) 0%, rgba(156, 207, 255, 0) 70%);
}

header.site, section, footer.site, main { position: relative; z-index: 1; }

a { color: var(--violet-deep); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Header ──────────────────────────────────────────────────────────── */
header.site {
  padding: 16px 0;
  background: rgba(255, 251, 241, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 30;
}
header.site .container { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brand .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(104, 90, 255, 0.20);
}
nav.site { display: flex; align-items: center; gap: 28px; }
nav.site a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
}
nav.site a:hover { color: var(--ink); text-decoration: none; }
nav.site a.nav-cta {
  padding: 10px 18px;
  border-radius: var(--radius-cta);
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: white;
  font-weight: 800;
  letter-spacing: 0.005em;
  box-shadow: var(--shadow-cta);
  position: relative;
  overflow: hidden;
}
nav.site a.nav-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1.5px; background: rgba(255,255,255,0.45);
}
nav.site a.nav-cta:hover { color: white; text-decoration: none; transform: translateY(-1px); }

/* ─── HERO ────────────────────────────────────────────────────────────── */
.hero { padding: 96px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy h1 {
  font-weight: 900;
  font-size: clamp(44px, 5.4vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 22px;
  color: var(--ink);
}
.grad-text {
  background: linear-gradient(120deg, var(--violet) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy p.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.55;
}

/* CTAs */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 22px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-cta);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.005em;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.cta:hover { transform: translateY(-1px); text-decoration: none; }
.cta-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: white;
  box-shadow: var(--shadow-cta);
}
.cta-primary::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1.5px; background: rgba(255,255,255,0.45);
}
.cta-primary:hover { color: white; }
.cta-ghost {
  color: var(--ink);
  padding: 14px 8px;
}
.cta-ghost:hover { color: var(--violet-deep); text-decoration: none; }

/* Apple's official "Download on the App Store" badge — sized to match
 * the existing CTA height (~48px) for visual parity. */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease;
}
.appstore-badge:hover { transform: translateY(-1px); text-decoration: none; }
.appstore-badge img {
  height: 52px;
  width: auto;
  display: block;
}
.appstore-badge-on-dark img { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25)); }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

/* Phone frames in hero */
.hero-shot {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-frame {
  border-radius: var(--radius-phone);
  overflow: hidden;
  background: #1F1B14;
  padding: 6px;
  box-shadow: var(--shadow-phone);
  width: 280px;
  position: relative;
  z-index: 2;
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}
.phone-frame-back {
  position: absolute;
  top: 80px; right: -40px;
  width: 240px;
  z-index: 1;
  transform: rotate(8deg);
  opacity: 0.92;
}

/* ─── Stats / trust strip ─────────────────────────────────────────────── */
.strip {
  padding: 20px 0 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px 36px;
  background: rgba(255, 251, 241, 0.62);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 0.5px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.strip-item { text-align: center; }
.strip-num {
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.strip-lbl {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

/* ─── Feature grid (4 cards) ──────────────────────────────────────────── */
section.features { padding: 96px 0 56px; }
.section-title {
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 14px;
  color: var(--ink);
  line-height: 1.1;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  position: relative;
  background: rgba(255, 251, 241, 0.62);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 0.5px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 30px;
}
.feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.feature::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(156, 207, 255, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.feature > * { position: relative; z-index: 1; }
.feature h3 {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--ink);
}
.feature p {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
.feature .glyph {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
  color: white;
  position: relative;
  overflow: hidden;
}
.feature .glyph::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1.5px; background: rgba(255, 255, 255, 0.45);
}
.feature:nth-child(1) .glyph { background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%); box-shadow: 0 4px 12px rgba(104, 90, 255, 0.30); }
.feature:nth-child(2) .glyph { background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%); box-shadow: 0 4px 12px rgba(156, 207, 255, 0.40); }
.feature:nth-child(3) .glyph { background: linear-gradient(135deg, var(--emerald-light) 0%, var(--emerald) 100%); box-shadow: 0 4px 12px rgba(45, 168, 111, 0.30); }
.feature:nth-child(4) .glyph { background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%); box-shadow: 0 4px 12px rgba(255, 91, 91, 0.30); }

/* ─── Alternating image+text rows ─────────────────────────────────────── */
section.rows { padding: 56px 0 80px; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0;
}
.row-image-right .row-shot { order: 2; }
.row-image-right .row-copy { order: 1; }
.row-copy h2 {
  font-weight: 900;
  font-size: clamp(28px, 2.8vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--ink);
}
.row-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 480px;
}
.check-list { list-style: none; }
.check-list li {
  padding: 8px 0;
  padding-left: 32px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: white;
  font-size: 12px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(104, 90, 255, 0.30);
}
.row-shot { display: flex; justify-content: center; }
.row-shot .phone-frame { width: 300px; }

/* ─── Pricing ─────────────────────────────────────────────────────────── */
section.pricing { padding: 80px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.plan {
  position: relative;
  background: rgba(255, 251, 241, 0.62);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 0.5px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 36px 30px;
}
.plan::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.plan::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(156, 207, 255, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.plan > * { position: relative; z-index: 1; }
.plan.featured {
  border: 1.5px solid var(--violet);
  box-shadow: 0 16px 40px rgba(104, 90, 255, 0.18), var(--shadow-card);
}
.plan.featured::before {
  background: linear-gradient(180deg, rgba(104, 90, 255, 0.18) 0%, rgba(104, 90, 255, 0) 100%);
  height: 40px;
}
.plan h3 {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 4px;
}
.featured-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan .price {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 14px 0 4px;
  color: var(--ink);
}
.plan .period { font-size: 13px; color: var(--ink-muted); font-weight: 700; margin-bottom: 24px; }
.plan ul { list-style: none; }
.plan li {
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.plan li::before { content: '✓'; color: var(--violet); font-weight: 900; font-size: 14px; }

/* ─── Footer CTA ──────────────────────────────────────────────────────── */
.footer-cta { padding: 40px 0 80px; }
.footer-cta-card {
  position: relative;
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: white;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(104, 90, 255, 0.32);
}
.footer-cta-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: rgba(255, 255, 255, 0.30);
}
.footer-cta-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.footer-cta-card > * { position: relative; z-index: 1; }
.footer-cta-card h2 {
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.footer-cta-card p {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 28px;
  opacity: 0.92;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-on-dark {
  background: white;
  color: var(--violet-deep);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.cta-on-dark::before { background: rgba(255, 255, 255, 1); height: 0; }
.cta-on-dark:hover { color: var(--violet-deep); }

/* ─── Footer ──────────────────────────────────────────────────────────── */
footer.site {
  padding: 36px 0 56px;
  border-top: 1px solid var(--hairline);
  background: rgba(255, 251, 241, 0.5);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
footer.site .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer.site .links a { margin-left: 22px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
footer.site .links a:hover { color: var(--ink); text-decoration: none; }
footer.site .copyright { color: var(--ink-muted); font-size: 13px; font-weight: 600; }

/* ─── Legal pages ─────────────────────────────────────────────────────── */
main.container { padding-top: 64px; padding-bottom: 80px; max-width: 760px; }
.legal { padding: 0; margin: 0; }
.legal h1 {
  font-weight: 900;
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  color: var(--ink);
}
.legal .subtitle { color: var(--ink-muted); font-size: 14px; font-weight: 700; margin-bottom: 32px; }
.legal .intro {
  position: relative;
  background: rgba(255, 251, 241, 0.62);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 0.5px solid var(--hairline);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 32px;
  line-height: 1.6;
  padding: 24px 26px;
  display: block;
}
.legal .intro::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.legal h2 {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 36px 0 14px;
  color: var(--ink);
}
.legal p {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.legal a { color: var(--violet-deep); font-weight: 800; }

/* ─── Support page cards ──────────────────────────────────────────────── */
.support-card {
  position: relative;
  background: rgba(255, 251, 241, 0.62);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 0.5px solid var(--hairline);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 24px 26px;
  margin-bottom: 14px;
}
.support-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.support-card h3 { font-weight: 900; font-size: 17px; letter-spacing: -0.015em; margin-bottom: 6px; color: var(--ink); position: relative; }
.support-card p { color: var(--ink-soft); font-size: 14px; font-weight: 600; margin-bottom: 4px; position: relative; }
.support-card a { font-weight: 800; }

/* ─── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy p.lede, .row-copy p { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .trust-row { justify-content: center; }
  .hero-shot { height: auto; }
  .phone-frame { width: 240px; }
  .phone-frame-back { display: none; }
  .strip-grid { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .row { grid-template-columns: 1fr; gap: 36px; padding: 36px 0; text-align: center; }
  .row-image-right .row-shot, .row-image-right .row-copy { order: initial; }
  .check-list li { padding-left: 32px; text-align: left; }
  .check-list { display: inline-block; text-align: left; }
  .footer-cta-card { padding: 48px 24px; }
}
@media (max-width: 540px) {
  nav.site { gap: 18px; }
  nav.site a { font-size: 13px; }
  nav.site a.nav-cta { padding: 9px 14px; font-size: 13px; }
  .container { padding: 0 20px; }
  .hero-copy h1 { font-size: 44px; }
  body::before, body::after { width: 320px; height: 320px; filter: blur(40px); }
}
