/* CoolWork official site — design system
 * Voice: ink-and-paper editorial with one signature gradient (the infinity
 * ribbon from the app icon: teal -> green -> amber). Dark hero = the icon's
 * near-black; body = warm paper. Fraunces display / Instrument Sans body /
 * IBM Plex Mono technical labels. */

:root {
  --ink: #1d1e20;
  --ink-deep: #0c0d10;
  --ink-soft: #5c5f66;
  --ink-faint: #9a9da3;
  --paper: #faf9f6;
  --paper-card: #ffffff;
  --line: #e7e4dc;
  --line-dark: #26282e;
  --brand-teal: #1ca9c9;
  --grad: linear-gradient(90deg, #1ca9c9 0%, #4a9b8e 50%, #f5a623 100%);
  --grad-soft: linear-gradient(90deg, rgba(28, 169, 201, 0.16), rgba(245, 166, 35, 0.16));
  --gold: #96700f;
  --danger: #b3372b;
  /* per-app module accents (the suite's own color language) */
  --m-docs: #185abd;
  --m-sheets: #34a853;
  --m-slides: #c43e1c;
  --m-pdf: #d0342c;
  --m-md: #5c5f66;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --wrap: 1080px;
  --r-card: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- shared bits ---------- */

.overline {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.overline::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333438; box-shadow: 0 10px 28px rgba(29, 30, 32, 0.18); }
.btn-ghost { border-color: var(--line-dark); color: #fff; background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: #4a4d55; background: rgba(255, 255, 255, 0.07); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 10px 28px rgba(12, 13, 16, 0.14); }
.btn .glyph { width: 17px; height: 17px; flex: none; }

.mono { font-family: var(--mono); }

section { padding: 88px 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 40px);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.14;
  margin: 14px 0 12px;
  font-variation-settings: "opsz" 60;
}
.sec-head p { color: var(--ink-soft); margin: 0; }

/* ---------- nav (sits inside the dark hero) ---------- */

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.nav a.link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.nav a.link:hover { color: #fff; }
.nav .auth {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  transition: border-color 140ms ease, background 140ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav .auth:hover { border-color: #4a4d55; background: rgba(255, 255, 255, 0.06); }
.nav .auth .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--ink-deep);
  color: #f4f4f2;
  overflow: hidden;
  padding: 128px 0 96px;
}
/* faint ruled-document texture: a page margin line + baselines */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, transparent 0 12%, rgba(28, 169, 201, 0.1) 12%, rgba(28, 169, 201, 0.1) calc(12% + 1px), transparent calc(12% + 1px));
  pointer-events: none;
}
.hero::after {
  /* gradient dawn at the bottom edge, melting into the paper */
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 130px;
  background: linear-gradient(180deg, transparent, rgba(250, 249, 246, 0.07));
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero .overline { color: rgba(255, 255, 255, 0.5); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6.2vw, 72px);
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 22px 0 18px;
  font-variation-settings: "opsz" 144;
}
.hero h1 .name {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 560;
}
.caret {
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  margin-left: 0.08em;
  border-radius: 2px;
  background: var(--grad);
  vertical-align: baseline -0.08em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero .lede {
  color: rgba(255, 255, 255, 0.66);
  font-size: 18px;
  max-width: 34em;
  margin: 0 0 30px;
}
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .fine {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.02em;
}

/* the document mock: a page being written by the AI + a phone approval */
.mock { position: relative; min-height: 400px; }
.mock .doc {
  position: absolute;
  top: 12px;
  right: 26px;
  width: min(360px, 88%);
  background: var(--paper-card);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 22px 24px 26px;
  transform: rotate(-1.6deg);
  color: var(--ink);
}
.mock .doc .dots { display: flex; gap: 6px; margin-bottom: 16px; }
.mock .doc .dots i { width: 9px; height: 9px; border-radius: 50%; background: #e3e0d8; }
.mock .doc .title-bar {
  height: 13px;
  width: 62%;
  border-radius: 6px;
  background: #232425;
  margin-bottom: 18px;
}
.mock .doc .row { height: 8px; border-radius: 4px; background: #e9e6de; margin: 11px 0; }
.mock .doc .row.w95 { width: 95%; }
.mock .doc .row.w80 { width: 80%; }
.mock .doc .row.w60 { width: 60%; }
.mock .doc .row.head { height: 10px; width: 38%; background: #232425; margin-top: 20px; }
.mock .doc .typing-row { position: relative; margin: 11px 0; }
.mock .doc .typing-row .bar {
  height: 8px;
  border-radius: 4px;
  background: var(--grad);
  animation: type 3.6s ease-in-out infinite alternate;
}
@keyframes type { from { width: 12%; } to { width: 88%; } }
.mock .doc .typing-row::after {
  content: "";
  position: absolute;
  top: -1px;
  left: calc(var(--tw, 50%) + 4px);
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: linear-gradient(180deg, #1ca9c9, #f5a623);
  animation: blink 1.05s steps(1) infinite, slide 3.6s ease-in-out infinite alternate;
}
@keyframes slide { from { left: calc(12% + 4px); } to { left: calc(88% + 4px); } }
.mock .ai-pill {
  position: absolute;
  top: -8px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #17181c;
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.mock .ai-pill .orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #1ca9c9, #4a9b8e, #f5a623, #1ca9c9);
  animation: spin 5s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mock .ai-pill small { display: block; color: rgba(255, 255, 255, 0.45); font-size: 11.5px; }
.mock .toast {
  position: absolute;
  bottom: 4px;
  left: 34px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #17181c;
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 13px;
  padding: 12px 15px;
  font-size: 13px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  z-index: 2;
  animation: rise 700ms cubic-bezier(0.2, 0.9, 0.25, 1.2) 1.4s backwards;
}
.mock .toast .ok {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(52, 168, 83, 0.16);
  color: #6fcf97;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex: none;
}
.mock .toast small { display: block; color: rgba(255, 255, 255, 0.42); font-size: 11.5px; }

@media (prefers-reduced-motion: reduce) {
  .caret, .mock .doc .typing-row .bar, .mock .doc .typing-row::after,
  .mock .ai-pill .orb, .mock .toast, .rise { animation: none !important; }
}

/* staggered hero entrance */
.rise { animation: rise 700ms cubic-bezier(0.2, 0.9, 0.25, 1.1) backwards; }
.rise.d1 { animation-delay: 90ms; }
.rise.d2 { animation-delay: 180ms; }
.rise.d3 { animation-delay: 270ms; }
.rise.d4 { animation-delay: 380ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- modules strip ---------- */

.modules { border-bottom: 1px solid var(--line); background: #fff; }
.modules .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.modules .label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-right: 8px;
}
.modules .mod {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
}
.modules .mod i { width: 9px; height: 9px; border-radius: 3px; }

/* ---------- video ---------- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #101114;
  box-shadow:
    0 1px 2px rgba(29, 30, 32, 0.06),
    0 24px 64px rgba(29, 30, 32, 0.14);
  border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- features ---------- */

.features { background: var(--paper); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(29, 30, 32, 0.09);
  border-color: #dcd8cd;
}
.card .ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.card .ic svg { width: 20px; height: 20px; }
.card h3 { font-size: 16.5px; font-weight: 650; margin: 0 0 7px; letter-spacing: -0.005em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.eco {
  margin-top: 18px;
  border: 1px dashed #d5d1c6;
  border-radius: var(--r-card);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  background: rgba(255, 255, 255, 0.55);
}
.eco .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eco span { font-size: 14.5px; font-weight: 550; color: var(--ink-soft); }
.eco span::before { content: "·"; margin-right: 10px; color: var(--ink-faint); }

/* ---------- steps ---------- */

.steps { background: #fff; border-block: 1px solid var(--line); }
.steps .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.step::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  display: inline-block;
}
.step h3 { font-family: var(--serif); font-size: 21px; font-weight: 580; margin: 12px 0 8px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
}
.plan h3 { margin: 0; font-size: 17px; font-weight: 650; }
.plan .price { font-family: var(--serif); font-size: 34px; font-weight: 560; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .price small { font-family: var(--sans); font-size: 13.5px; color: var(--ink-faint); font-weight: 500; }
.plan .per { color: var(--ink-faint); font-size: 13px; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan li {
  padding: 8px 0;
  border-top: 1px solid #f0ede5;
  font-size: 14.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
}
.plan li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--grad);
  margin-top: 8px;
  flex: none;
}
.plan li b { color: var(--ink); font-weight: 600; }
.plan .btn { justify-content: center; }
.plan.popular {
  border-color: #d8c48c;
  box-shadow: 0 18px 48px rgba(150, 112, 15, 0.1);
}
.plan.popular::before {
  content: "Most popular";
  position: absolute;
  top: -13px;
  left: 26px;
  background: linear-gradient(90deg, #96700f, #b98f1d);
  color: #fff;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
}
.plan-note {
  margin-top: 22px;
  color: var(--ink-faint);
  font-size: 13.5px;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq { background: #fff; border-block: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 4px;
  font-weight: 600;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ink-faint);
  transition: transform 180ms ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; max-width: 62em; }
.faq a { color: var(--brand-teal); font-weight: 550; }

/* ---------- CTA band ---------- */

.band { background: var(--ink-deep); color: #f4f4f2; text-align: center; padding: 96px 0 104px; position: relative; overflow: hidden; }
.band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 2px;
  background: var(--grad);
}
.band h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 520;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.band p { color: rgba(255, 255, 255, 0.55); margin: 0 0 30px; }
.band .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- footer ---------- */

footer { background: var(--ink-deep); color: rgba(255, 255, 255, 0.55); border-top: 1px solid var(--line-dark); padding: 44px 0 40px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 26px 48px; align-items: center; }
footer .brand b { color: rgba(255, 255, 255, 0.9); }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
footer nav a { text-decoration: none; color: rgba(255, 255, 255, 0.55); }
footer nav a:hover { color: #fff; }
footer .fine { width: 100%; font-family: var(--mono); font-size: 11.5px; color: rgba(255, 255, 255, 0.3); }

/* ---------- download page ---------- */

.dl-head { padding: 72px 0 10px; }
.dl-head h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 540;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
}
.dl-head .ver { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.dl-head p.sub { color: var(--ink-soft); max-width: 40em; margin: 12px 0 0; }
.dl-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 12px;
}
.dl-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dl-card .plat { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.dl-card .plat .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink-deep);
  display: grid;
  place-items: center;
}
.dl-card .plat .ic svg { width: 22px; height: 22px; }
.dl-card .plat h2 { margin: 0; font-size: 19px; font-weight: 650; }
.dl-card .meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); }
.dl-card p { color: var(--ink-soft); font-size: 14.5px; margin: 10px 0 18px; flex: 1; }
.dl-card .btn { justify-content: center; }
.dl-card details { margin-top: 12px; }
.dl-card details summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  list-style: none;
}
.dl-card details summary::-webkit-details-marker { display: none; }
.dl-card details summary::before { content: "sha256  "; letter-spacing: 0.1em; }
.dl-card details div {
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  margin-top: 8px;
}
.dl-notes { margin: 26px 0 80px; color: var(--ink-soft); font-size: 14px; }
.dl-notes div { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.dl-notes b { color: var(--ink); font-weight: 600; }

/* sign-in state injected by site.js */
[data-authed="1"] .anon-only { display: none; }
[data-authed="0"] .authed-only { display: none; }
.nav .acct {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 16px 7px 8px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}
.nav .acct:hover { background: rgba(255, 255, 255, 0.06); }
.nav .acct .ava {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #0c0d10;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .mock { min-height: 330px; max-width: 480px; }
  .grid, .plans, .steps .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 108px 0 72px; }
  .grid, .plans, .steps .row, .dl-cards { grid-template-columns: 1fr; }
  .nav .link { display: none; }
  .mock .doc { right: 0; }
  .mock .toast { left: 0; }
}
