/* TaskSocial — tasksocial.app
   Brand: red #EE220C -> green #1DB100 (Red Green LLC) */

:root {
  --red: #EE220C;
  --red-soft: #F25855;
  --green: #1DB100;
  --green-deep: #00904A;

  --bg: #0B0B0F;
  --bg-raised: #14141B;
  --bg-card: #191922;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #F5F5F7;
  --text-dim: #A6A6B3;
  --text-faint: #82828E;

  --grad: linear-gradient(115deg, var(--red) 0%, #C4451F 45%, var(--green) 100%);
  /* Darkened version of --grad for white text sitting directly on top of it (.btn-primary) --
     the green end of --grad only gives white text 2.86:1 (WCAG AA needs 4.5:1 for this button's
     15-17px text). Sampled the whole gradient path after darkening: worst point is 4.64:1. */
  --btn-grad: linear-gradient(115deg, #E4210C 0%, #C4451F 45%, #168700 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 40px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 0 0 12px 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.brand span { position: absolute; left: -9999px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; color: var(--text-dim); font-size: 15px; font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text); }
@media (max-width: 780px) { .nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--btn-grad); color: #fff;
  box-shadow: 0 8px 26px rgba(238, 34, 12, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(238, 34, 12, 0.42); }
.btn-ghost { background: rgba(255,255,255,0.07); color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 17px 30px; font-size: 17px; }

.btn .apple { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 7vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 20% auto -20%; height: 720px;
  background: radial-gradient(closest-side, rgba(238,34,12,.28), transparent 72%);
  filter: blur(20px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: -10% -25% auto auto; width: 780px; height: 780px;
  background: radial-gradient(closest-side, rgba(29,177,0,.22), transparent 72%);
  filter: blur(20px); pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 9px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  letter-spacing: .01em; margin-bottom: 24px;
}
.eyebrow b { color: var(--text); font-weight: 600; }
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(29,177,0,.18); margin-left: 6px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6.2vw, 68px); line-height: 1.04;
  letter-spacing: -0.035em; font-weight: 800;
}
h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede { margin: 0 0 32px; font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); max-width: 32em; }
@media (max-width: 900px) { .lede { margin-inline: auto; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }

.hero-meta { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-faint); }
@media (max-width: 900px) { .hero-meta { justify-content: center; } }
.stars { color: #FFC53D; letter-spacing: 2px; font-size: 14px; }

/* Phone frame */
.phone {
  position: relative; margin-inline: auto; width: min(300px, 78vw);
  border-radius: 42px;
  filter: drop-shadow(0 34px 60px rgba(0,0,0,.6));
}
.phone img { border-radius: 40px; }
.hero-phones { position: relative; display: flex; justify-content: center; }
.hero-phones .phone.back {
  position: absolute; top: 42px; left: 50%; width: min(232px, 60vw);
  transform: translateX(-88%) rotate(-9deg); opacity: .7; z-index: 0;
}
.hero-phones .phone.front { position: relative; z-index: 1; }
@media (max-width: 560px) { .hero-phones .phone.back { display: none; } }

/* ---------- Section shell ---------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin: 0 0 14px;
}
h2 { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.02em; font-weight: 700; }
.section-head p { margin: 0; color: var(--text-dim); font-size: 18px; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px);
  align-items: center; padding: clamp(40px, 6vw, 72px) 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: -1; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-media { order: 0; }
}
.feature-num {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--text-faint); margin: 0 0 14px;
}
.feature h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; margin-bottom: 14px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 17px; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(268px, 70vw); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; position: relative; overflow: hidden;
}
.step::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
}
.step-n {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 16px; margin-bottom: 18px;
}
.step p { margin: 0; color: var(--text-dim); font-size: 16px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 14px;
}
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.review cite { font-style: normal; font-size: 14px; color: var(--text-faint); margin-top: auto; }

/* ---------- Final CTA ---------- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; }
.cta-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  padding: clamp(40px, 6vw, 72px) var(--pad); text-align: center;
}
.cta-card::before {
  content: ""; position: absolute; inset: -60% -10% auto -10%; height: 420px;
  background: radial-gradient(closest-side, rgba(238,34,12,.30), transparent 70%);
  pointer-events: none;
}
.cta-card::after {
  content: ""; position: absolute; inset: auto -20% -70% 30%; height: 420px;
  background: radial-gradient(closest-side, rgba(29,177,0,.26), transparent 70%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { margin-bottom: 14px; }
.cta-card p { color: var(--text-dim); font-size: 18px; margin: 0 auto 30px; max-width: 34em; }
.cta-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 14px 34px rgba(0,0,0,.5); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer img { height: 26px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.foot-links a { color: var(--text-dim); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.copy { width: 100%; color: var(--text-faint); font-size: 14px; margin: 0; }

/* ---------- Legal / simple pages ---------- */
.page-head { padding: clamp(48px, 7vw, 84px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 12px; }
.page-head .updated { color: var(--text-faint); font-size: 15px; margin: 0; }

.legal { padding: clamp(36px, 5vw, 60px) 0 clamp(64px, 8vw, 100px); }
.legal .wrap { max-width: 820px; }
.legal h2 {
  font-size: 22px; letter-spacing: -0.01em; text-transform: none;
  margin: 44px 0 14px; padding-top: 20px; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 17px; margin: 28px 0 8px; color: var(--text); }
.legal p { color: var(--text-dim); font-size: 16.5px; margin: 0 0 16px; white-space: pre-wrap; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: clamp(40px,6vw,72px) 0 clamp(64px,8vw,100px); }
@media (max-width: 800px) { .support-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.card p { color: var(--text-dim); margin: 0 0 20px; font-size: 16px; }
.card p:last-child { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); padding: 18px 0; }
.faq:last-child { padding-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-faint); font-weight: 400; font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: "\2013"; }
.faq p { color: var(--text-dim); font-size: 16px; margin: 12px 0 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Small-screen refinements ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }

  .eyebrow {
    font-size: 12px; padding: 6px 12px 6px 12px; gap: 7px;
    max-width: 100%; text-align: center;
  }
  .eyebrow .dot { margin-left: 2px; }

  .lede { font-size: 16.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { padding: 15px 24px; font-size: 16px; }

  .hero-meta { flex-direction: column; gap: 6px; text-align: center; }

  .step, .card { padding: 26px 22px; }
  .cta-card { padding: 40px 22px; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot-links { gap: 8px 20px; }
}

/* ---------- Support form ---------- */
.support-form-wrap {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px);
  align-items: start;
}
.support-form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span {
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--text);
}
.field > span em { font-style: normal; font-weight: 500; color: var(--text-faint); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .16s ease, background .16s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red-soft);
  background: rgba(255, 255, 255, 0.08);
}
/* Keyboard focus stays visible even though the border already moves. */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { box-shadow: 0 0 0 3px rgba(242, 88, 85, 0.28); }
.field select { appearance: none; cursor: pointer; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 2px; }
.support-actions .btn { border: 0; cursor: pointer; }
.support-actions .btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.support-status { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-dim); }
.support-status.is-error { color: var(--red-soft); }
.support-status.is-success { color: var(--green); }
.support-side h3 { margin-top: 0; }
.support-side p:last-child { margin-bottom: 0; }
.support-side a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .support-form-wrap { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
