/* The public site (tinario.com). Same tokens as the apps
   (packages/shared/ui.css): keep the colors and fonts in sync by hand, since
   this site has no build step. Fonts are served from here, not from Google. */

@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Fraunces Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --font: "Instrument Sans Variable", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces Variable", Georgia, "Times New Roman", serif;

  --bg: #f8f4ec;
  --surface: #fffdf8;
  --surface-2: #f3ede2;
  --border: #e6ddcf;
  --border-strong: #d4c8b6;
  --text: #241d17;
  --text-2: #5b5047;
  --muted: #8c8074;

  --accent: #b5522c;
  --accent-hover: #9a4322;
  --accent-soft: #f6e5da;
  --accent-text: #ffffff;

  --success: #4f7a35;
  --success-soft: #ebf1e2;
  --danger: #b13a2c;
  --danger-soft: #f8e4df;
  --warning: #a8670f;
  --warning-soft: #f8ecd6;
  --teal: #2d7a72;
  --teal-soft: #e0efec;
  --info: #3c6683;
  --info-soft: #e3ecf1;

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.06);
  --shadow: 0 4px 14px rgba(60, 40, 20, 0.08), 0 1px 3px rgba(60, 40, 20, 0.06);
  --shadow-lg: 0 24px 60px rgba(60, 40, 20, 0.14), 0 4px 14px rgba(60, 40, 20, 0.08);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --surface: #201a15;
    --surface-2: #2a231c;
    --border: #3a3128;
    --border-strong: #4d4236;
    --text: #f1e9dd;
    --text-2: #c8bba9;
    --muted: #978a7a;

    --accent: #e0805a;
    --accent-hover: #ec9a79;
    --accent-soft: #3b241a;
    --accent-text: #17130f;

    --success: #93bf73;
    --success-soft: #222c19;
    --danger: #e97a6c;
    --danger-soft: #3a1f1a;
    --warning: #e2a94f;
    --warning-soft: #362a16;
    --teal: #6fc0b5;
    --teal-soft: #17302c;
    --info: #86b1cf;
    --info-soft: #1c2a33;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

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

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

body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.015em;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.site-nav a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  font: 600 14px/1 var(--font);
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  border-color: var(--text-2);
}

.btn-primary {
  color: var(--accent-text);
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-xs {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

a:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Hero */

.hero {
  padding: 56px 0 72px;
  /* The illustration's backdrop sticks out a little; never a sideways scroll. */
  overflow-x: clip;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 80px 0 96px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.06;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

/* Side panel illustration: the same pieces as the extension's. */

.mock {
  position: relative;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

figure.mock {
  margin: 0 auto;
}

.mock::before {
  content: "";
  position: absolute;
  inset: 28px -18px -18px 28px;
  background: var(--accent-soft);
  border-radius: 28px;
  transform: rotate(2.5deg);
}

.panel {
  position: relative;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.panel-top .brand {
  font-size: 13px;
  gap: 8px;
}

.panel-top .brand-mark {
  width: 22px;
  height: 22px;
  font-size: 13px;
  border-radius: 6px;
}

.job-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 62%;
  padding: 4px 10px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.panel-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.person-name {
  font-weight: 700;
  font-size: 15px;
}

.small {
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

.match-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.match-block {
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.match-block .label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.match-block strong {
  font-size: 15px;
}

.tone-success {
  color: var(--success);
}

.requirements {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.requirement {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.requirement:first-child {
  border-top: none;
}

.requirement-text {
  font-weight: 600;
}

.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 600;
  vertical-align: 1px;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
}

/* The cited part of the profile, as in the apps (.evidence in packages/shared/ui.css). */
.evidence {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.evidence-label {
  font-weight: 600;
  color: var(--accent);
}

.verdict-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-style: italic;
  color: var(--warning);
}

.verdict {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
}

.verdict.yes {
  color: var(--success);
  background: var(--success-soft);
}

.verdict.partial {
  color: var(--warning);
  background: var(--warning-soft);
}

.verdict.no {
  color: var(--danger);
  background: var(--danger-soft);
}

.verdict.unsure {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.panel-actions {
  display: flex;
  gap: 8px;
}

.panel-actions .btn {
  flex: 1;
}

.mock-caption {
  position: relative;
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  /* Anchored sections clear the sticky header. */
  scroll-margin-top: 64px;
}

.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
}

.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-2);
}

.kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.features {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
}

.feature h3 {
  font-size: 18px;
  line-height: 1.3;
}

.feature p {
  margin-top: 8px;
  color: var(--text-2);
}

/* The four verdicts and what each means, above the features. */
.legend-title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.legend {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 18px 20px;
  font-size: 14px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}

@media (min-width: 720px) {
  .legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .legend {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

.legend dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.legend dd {
  margin: 4px 0 0 26px;
  color: var(--text-2);
}

.legend .verdict {
  margin-top: 0;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}

.step h3 {
  font-size: 18px;
}

.step p {
  margin-top: 8px;
  color: var(--text-2);
}

.privacy-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .privacy-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 32px;
  }
}

.privacy-points li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  color: var(--text-2);
}

.privacy-points strong {
  color: var(--text);
}

.check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 50%;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
  color: var(--accent);
  text-underline-offset: 3px;
}

/* Team section: the web app's job view, as in webapp/src. */

.team-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 1000px) {
  .team-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 24px;
  }
}

.app-mock {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window-bar em {
  margin-left: 10px;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

.app-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.app-head {
  display: grid;
}

.app-head .display {
  font-size: 22px;
  line-height: 1.25;
}

.app-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.app-metrics > div {
  display: grid;
  align-content: start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.app-metrics .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-metrics strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.app-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.app-table table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.app-table th,
.app-table td {
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.app-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}

.app-table tbody tr:last-child td {
  border-bottom: none;
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.avatar.sm {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.fit {
  font-weight: 700;
}

.tone-warning.fit {
  color: var(--warning);
}

.tone-muted.fit {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill.tone-neutral { color: var(--text-2); background: var(--surface-2); }
.pill.tone-info { color: var(--info); background: var(--info-soft); }
.pill.tone-accent { color: var(--accent); background: var(--accent-soft); }
.pill.tone-teal { color: var(--teal); background: var(--teal-soft); }
.pill.tone-warning { color: var(--warning); background: var(--warning-soft); }
.pill.tone-muted { color: var(--muted); background: var(--surface-2); }

.by {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
}

.due {
  font-size: 12px;
  font-weight: 700;
  color: var(--warning);
}

.team-cards {
  display: grid;
  gap: 12px;
}

.team-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.team-card p {
  color: var(--text-2);
}

.team-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.note-meta {
  font-size: 13px;
  color: var(--muted);
}

.note-meta strong {
  color: var(--text);
}

.follow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.team-points {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
}

@media (min-width: 860px) {
  .team-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.team-points strong {
  display: block;
  color: var(--text);
}

/* Closing call to action */

.cta {
  padding: 48px 24px;
  text-align: center;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 24px;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
}

.cta p {
  max-width: 34em;
  margin: 14px auto 0;
  font-size: 17px;
  opacity: 0.9;
}

.cta .btn {
  margin-top: 28px;
  color: var(--accent);
  background: var(--surface);
  border-color: var(--surface);
}

.cta .btn:hover {
  background: var(--bg);
}

/* Footer */

.site-footer {
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* Legal pages */

.legal {
  max-width: 760px;
  padding: 40px 16px 72px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
}

.legal h2 {
  margin: 40px 0 10px;
  padding-top: 20px;
  font-size: 22px;
  border-top: 1px solid var(--border);
}

.legal h3 {
  margin: 22px 0 6px;
  font-size: 16px;
}

.legal p,
.legal ul {
  margin: 0 0 12px;
  color: var(--text-2);
}

.legal strong {
  color: var(--text);
}

.legal li {
  margin: 6px 0;
}

.legal a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.legal .updated {
  margin: 8px 0 28px;
  color: var(--muted);
}

.legal .table {
  overflow-x: auto;
  margin: 12px 0 16px;
}

.legal table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.legal th,
.legal td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.legal th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}

.legal td {
  color: var(--text-2);
}

.legal code {
  font-size: 0.9em;
}
