/* Takt website — standalone stylesheet. Tokens mirror the Takt app palette
   but nothing is imported from the app; this folder deploys on its own. */

:root {
  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-soft: #eef2ff;
  --green: #10b981;

  --surface: #f8fafc;
  --surface-elevated: #ffffff;
  --line: #e2e8f0;

  --fg-1: #0f172a;
  --fg-2: #334155;
  --fg-3: #64748b;

  --radius: 0.75rem;
  --shadow-sm: 0 1px 6px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 2px 12px rgba(15, 23, 42, 0.1);

  --font-sans:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #818cf8;
    --brand-strong: #a5b4fc;
    --brand-soft: rgba(129, 140, 248, 0.14);

    --surface: #1e1e1e;
    --surface-elevated: #2d2d2d;
    --line: rgba(255, 255, 255, 0.12);

    --fg-1: #e2e8f0;
    --fg-2: #cbd5e1;
    --fg-3: #94a3b8;

    --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--fg-1);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--surface-elevated);
  color: var(--fg-1);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 3rem, 64rem);
  margin-inline: auto;
}

/* Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  text-decoration: none;
}

.wordmark svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--fg-1);
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.125rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-elevated);
}

.lang-switch a {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--fg-3);
}

.lang-switch a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
}

@media (max-width: 40rem) {
  .site-nav .nav-anchor {
    display: none;
  }
}

/* Hero -------------------------------------------------------------- */

.hero {
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
}

.hero h1 {
  margin-top: 1.25rem;
  max-width: 20ch;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero .lede {
  margin-top: 1.25rem;
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--fg-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--brand);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--brand-strong);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .button-primary,
  .button-primary:hover {
    color: #111318;
  }
}

.button-outline {
  background: var(--surface-elevated);
  border-color: var(--line);
  color: var(--fg-1);
}

.button-outline:hover {
  border-color: var(--fg-3);
  color: var(--fg-1);
}

/* Screenshots ------------------------------------------------------- */

.shot {
  margin: 0;
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
  font-size: 0.9rem;
}

.shot figcaption strong {
  color: var(--fg-1);
  font-weight: 600;
}

.hero-shot {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.hero-shot .shot {
  border-radius: calc(var(--radius) + 4px);
}

.screens {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

/* Three shots on a two-column grid: let the last one take the full row. */
@media (min-width: 48rem) {
  .screens > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Sections ---------------------------------------------------------- */

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin-top: 0.75rem;
  color: var(--fg-2);
  font-size: 1.0625rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  padding: 1.25rem 1.25rem 1.375rem;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 0.5rem;
  color: var(--fg-2);
  font-size: 0.9375rem;
}

.card .tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Local-first callout ----------------------------------------------- */

.callout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 48rem) {
  .callout {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

.callout h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.callout p {
  margin-top: 0.75rem;
  color: var(--fg-2);
}

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--fg-1);
}

.checklist svg {
  flex: none;
  margin-top: 0.2rem;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--green);
}

/* Grid items default to min-width:auto, which lets long content push the
   whole page wider than the viewport on phones. */
.callout > * {
  min-width: 0;
}

/* Pricing ----------------------------------------------------------- */

.pricing {
  display: grid;
  gap: 1.25rem;
}

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--fg-1);
}

.price-table thead th {
  background: var(--surface);
  color: var(--fg-3);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.price-table tbody th {
  font-weight: 500;
}

.price-table td strong {
  color: var(--brand);
  font-weight: 700;
}

.price-table td:last-child {
  color: var(--fg-3);
}

.price-table td a {
  white-space: nowrap;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table .price-free th,
.price-table .price-free td {
  background: var(--brand-soft);
}

.price-table .price-free th {
  font-weight: 650;
}

.price-table .price-free td strong {
  font-size: 1.0625rem;
}

.price-notes {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25rem;
  color: var(--fg-3);
  font-size: 0.9rem;
}

@media (max-width: 30rem) {
  .price-table th,
  .price-table td {
    padding: 0.7rem 0.75rem;
  }
}

/* Coming soon ------------------------------------------------------- */

@media (min-width: 48rem) {
  .callout-soon {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
}

.callout-soon h2 {
  margin-top: 1rem;
}

.soon-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

@media (min-width: 48rem) {
  .soon-actions {
    justify-items: end;
    text-align: right;
  }
}

.soon-mail {
  margin: 0;
  color: var(--fg-3);
  font-size: 0.9375rem;
}

.soon-mail a {
  color: var(--fg-1);
  font-weight: 500;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer ------------------------------------------------------------ */

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: var(--fg-2);
}
