/*
 * The landing page at autune.cloud. Values follow apps/web/src/app/tokens.css
 * (generated from docs/design/design-tokens.json) so the page and the app read
 * as one product; the type scale is larger because a landing page is read from
 * further away than a work screen.
 *
 * No inline style anywhere: _headers sets style-src 'self'.
 */

:root {
  --paper: #f4f3ef;
  --panel: #ffffff;
  --sunken: #ebeae5;
  --ink-strong: #16191f;
  --ink-body: #3a3f47;
  /* Darker than the app's #7A8089: that one is 3.6:1 on paper, under AA for body-size text. */
  --ink-muted: #5f656e;
  --hairline: rgba(22, 25, 31, 0.12);
  --accent: #3b4a9e;
  --accent-hover: #2c3878;
  --accent-selection: #e9ebf6;
  --accent-on-ink: #8f9be0;
  /* signal.attention darkened for text: #B8862B is 3.2:1 on white. */
  --attention-text: #8a6316;
  --attention: #b8862b;
  --on-ink-strong: #edeef0;
  --on-ink-body: #b9bec6;
  --on-ink-hairline: rgba(255, 255, 255, 0.1);
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  --radius: 4px;
  --radius-card: 8px;
  --header-h: 64px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 808px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--panel);
  color: var(--ink-strong);
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 16px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 243, 239, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.wordmark {
  display: block;
  width: 92px;
  height: 22px;
}

.wordmark--small {
  width: 75px;
  height: 18px;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14.5px;
}

.site-nav a {
  color: var(--ink-body);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink-strong);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

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

.button--primary:hover {
  background: var(--accent-hover);
}

.button--ghost {
  border-color: rgba(22, 25, 31, 0.2);
  color: var(--ink-strong);
}

.button--ghost:hover {
  background: var(--panel);
}

.button--small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.button--text {
  padding: 0 8px;
  color: var(--ink-strong);
  text-decoration: underline;
  text-decoration-color: rgba(22, 25, 31, 0.3);
  text-underline-offset: 5px;
}

.button--text:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

.hero {
  padding-block: 80px 104px;
  background: radial-gradient(900px 480px at 88% 8%, rgba(59, 74, 158, 0.09), transparent 62%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.eyebrow--on-ink {
  color: var(--accent-on-ink);
}

.hero__title {
  margin-top: 14px;
  color: var(--ink-strong);
  font-size: clamp(2.25rem, 1.35rem + 3.2vw, 3.125rem);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 34em;
  margin-top: 22px;
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.hero__note {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

/* The illustrative meeting record. Made-up people and lines, never real data. */

.demo {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow:
    0 1px 0 rgba(22, 25, 31, 0.04),
    0 18px 40px -18px rgba(22, 25, 31, 0.22);
  overflow: hidden;
}

.demo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
}

.demo__title {
  color: var(--ink-strong);
  font-size: 14.5px;
  font-weight: 600;
}

.demo__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-body);
  font-size: 12.5px;
  font-weight: 500;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-strong);
}

.demo__block {
  padding: 16px 20px 8px;
}

.demo__label {
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.demo__lines li {
  display: grid;
  grid-template-columns: 40px 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-block: 6px;
  font-size: 14px;
  line-height: 1.55;
}

.who {
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 600;
}

.when {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.said {
  color: var(--ink-body);
}

.masked {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--sunken);
  color: var(--ink-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
}

.demo__results {
  padding: 4px 20px;
  border-top: 1px solid var(--hairline);
}

.demo__results > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-block: 11px;
  border-bottom: 1px solid var(--hairline);
}

.demo__results > div:last-child {
  border-bottom: 0;
}

.demo__results dt {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.demo__results dd {
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.demo__results .is-gap dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--attention-text);
}

.demo__results .is-gap dt::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--attention);
}

.demo figcaption {
  padding: 10px 20px 12px;
  border-top: 1px solid var(--hairline);
  background: #fafaf8;
  color: var(--ink-muted);
  font-size: 12.5px;
}

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

.section {
  padding-block: 104px;
}

.section--panel {
  background: var(--panel);
  border-block: 1px solid var(--hairline);
}

.section--ink {
  background: var(--ink-strong);
  color: var(--on-ink-body);
}

.section__title {
  max-width: 22em;
  margin-top: 12px;
  color: var(--ink-strong);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.section--ink .section__title {
  color: var(--on-ink-strong);
}

.section__lead {
  max-width: 40em;
  margin-top: 18px;
  font-size: 17px;
}

.section__closing {
  margin-top: 56px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 600;
}

.section__more {
  margin-top: 36px;
  font-size: 15px;
  font-weight: 600;
}

.section__more a {
  color: var(--accent-on-ink);
  text-underline-offset: 5px;
}

h3 {
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Problems */

.problems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 52px;
}

.problem {
  padding-top: 20px;
  border-top: 1.5px solid var(--ink-strong);
}

.problem__number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.problem h3 {
  margin-top: 10px;
}

.problem p {
  margin-top: 10px;
  font-size: 15.5px;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.feature {
  padding: 32px 28px 34px;
  background: var(--panel);
}

.feature__icon {
  display: block;
  width: 28px;
  height: 28px;
}

.feature h3 {
  margin-top: 18px;
}

.feature p {
  margin-top: 10px;
  font-size: 15px;
}

.integrations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.integrations__label {
  margin-right: 8px;
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.chip {
  padding: 5px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-strong);
  font-size: 13.5px;
  font-weight: 500;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 52px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-selection);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.step h3 {
  margin-top: 16px;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
}

/* Privacy principles, on ink */

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--on-ink-hairline);
  border: 1px solid var(--on-ink-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.principle {
  padding: 30px 28px 32px;
  background: var(--ink-strong);
}

.principle h3 {
  color: var(--on-ink-strong);
}

.principle h3::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--accent-on-ink);
}

.principle p {
  margin-top: 10px;
  font-size: 15px;
}

/* FAQ */

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 44px 22px 0;
  font-size: 15.5px;
}

/* Closing call to action */

.cta {
  padding-block: 72px;
  background: var(--accent-selection);
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta__title {
  color: var(--ink-strong);
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-size: 13.5px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer__links a {
  color: var(--ink-body);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--ink-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__copy {
  margin-left: auto;
}

/* ---------- Not found ---------- */

.not-found {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 20px;
  padding: var(--gutter);
  text-align: center;
}

.not-found h1 {
  color: var(--ink-strong);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.not-found .wordmark {
  margin-inline: auto;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .demo {
    max-width: 580px;
  }

  .problems {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .site-header__inner > .button {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --header-h: 56px;
  }

  .section {
    padding-block: 72px;
  }

  .hero {
    padding-block: 48px 72px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .features,
  .steps,
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature,
  .principle {
    padding: 26px 22px 28px;
  }

  .demo__bar,
  .demo__block,
  .demo__results,
  .demo figcaption {
    padding-inline: 16px;
  }

  .demo__lines li {
    grid-template-columns: 34px 40px minmax(0, 1fr);
    gap: 8px;
    font-size: 13.5px;
  }

  .demo__results > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .site-footer__copy {
    margin-left: 0;
  }
}
