/* Cora's link-in-bio page. Same colours, type and card shapes as the app (src/constants/brand.ts). */

@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --evergreen: #1D2C25;
  --night: #141D19;
  --cream: #F3EADC;
  --gold: #C9A978;
  --sage: #A9B8AD;
  --linen: #EADCC6;
  --clay: #C98A73;
  --surface: #22342B;
  --raised: #283B31;
  --hairline: rgba(201, 169, 120, 0.28);
  --divider: rgba(243, 234, 220, 0.09);
  --muted: rgba(243, 234, 220, 0.66);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--evergreen);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
}

a { color: var(--gold); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: the wordmark, with the small AI tag that says Cora isn't a person. */
.top {
  display: flex;
  justify-content: center;
  padding: 1.1rem 0 0.9rem;
  border-bottom: 1px solid var(--hairline);
}
.brand { position: relative; display: block; width: 86px; height: 34px; }
.brand img { display: block; width: 86px; height: 34px; }
.ai-tag {
  position: absolute;
  left: 93px;
  top: 9px;
  padding: 1px 6px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 14px;
  color: var(--sage);
}

.label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.label.clay { color: var(--clay); }
.label.sage { color: var(--sage); }

/* Intro */
.intro { text-align: center; padding: 2.25rem 0 1.5rem; }
.intro .face {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: block;
  margin: 0 auto 1.1rem;
}
h1 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.22;
  text-wrap: balance;
}
.intro p {
  margin: 0 auto;
  max-width: 24rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--linen);
  text-wrap: balance;
}
body.started .intro { padding: 1.25rem 0 0.5rem; }
body.started .intro .face, body.started .intro p { display: none; }
body.started h1 { font-size: 1.2rem; color: var(--muted); font-weight: 400; margin: 0; }

/* The conversation */
.thread { display: flex; flex-direction: column; gap: 1rem; }
.thread:not(:empty) { padding: 1rem 0 1.25rem; }

.you {
  align-self: flex-end;
  max-width: 85%;
  padding: 10px 16px;
  background: var(--raised);
  border-radius: 20px 20px 6px 20px;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cora { display: flex; gap: 12px; align-items: flex-start; }
.cora img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.cora p {
  margin: 1px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cora.thinking p { font-style: italic; color: var(--muted); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cora.thinking p { animation: none; } }

.card {
  background: var(--night);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 4px 16px;
}
.card section { padding: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.card section + section { border-top: 1px solid var(--divider); }
.card p { margin: 0; overflow-wrap: anywhere; }
.card .body { font-family: var(--serif); font-size: 16.5px; line-height: 1.52; }
.card .why { font-size: 14px; line-height: 1.45; color: var(--muted); }
.card .who { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--sage); }
.card .risky { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--clay); }

.try {
  background: var(--surface);
  border-left: 2px solid var(--gold);
  border-radius: 10px;
  padding: 12px 14px 8px;
}
.try p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.47; white-space: pre-wrap; }
.copy {
  display: block;
  margin: 4px 0 0 auto;
  padding: 6px 2px;
  background: none;
  border: 0;
  font: 600 13px var(--sans);
  color: var(--gold);
  cursor: pointer;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 32px;
  padding: 0 12px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font: 400 13px var(--sans);
  color: var(--muted);
  cursor: pointer;
}
.chip[aria-pressed='true'] { background: var(--raised); border-color: var(--gold); color: var(--cream); }

.stack { display: flex; flex-direction: column; gap: 12px; }
.card .who.them { margin-top: 8px; }
.help { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.help a { display: block; text-decoration: none; color: var(--cream); }
.help a strong { display: block; font-size: 15px; font-weight: 600; }
.help a span { font-size: 14px; color: var(--muted); }
.help .private { font-size: 12px; color: var(--muted); }

/* Asking */
.ask { display: flex; flex-direction: column; gap: 0.85rem; padding-bottom: 1.75rem; }
textarea, input[type='email'] {
  width: 100%;
  background: var(--night);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 14px 16px;
  font: 400 17px/1.45 var(--sans);
  color: var(--cream);
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 7.5rem; resize: none; display: block; }
body.started textarea { min-height: 4.5rem; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 0.75; }
textarea:focus, input[type='email']:focus { outline: none; border-color: var(--gold); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--gold); }
.fine { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.check:not([hidden]) + .fine { margin-left: 34px; }

.btn {
  width: 100%;
  min-height: 52px;
  padding: 0 1.25rem;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  font: 600 16px var(--sans);
  color: var(--night);
  cursor: pointer;
}
.btn:disabled { opacity: 0.4; cursor: default; }
.note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--clay); }
.note:empty { display: none; }

/* Early access */
.more {
  margin: 0 0 2rem;
  padding: 18px 16px;
  background: var(--night);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.more h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; }
.more p { margin: 0; }
.more .lede { font-size: 15px; color: var(--linen); }
.more form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.more .done { font-family: var(--serif); font-size: 17px; color: var(--cream); }

/* Footer */
.foot { border-top: 1px solid var(--hairline); padding: 1.25rem 0 2.5rem; font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 0.6rem; }
.foot a { color: var(--linen); }
.foot nav { display: flex; gap: 1rem; }

/* Terms and Privacy */
.page { padding-top: 2rem; padding-bottom: 2.5rem; }
.page h1 { font-size: 1.75rem; margin: 0.6rem 0 1.25rem; }
.page ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.page li { position: relative; padding-left: 18px; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--linen); }
.page li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.page h2 { margin: 2rem 0 1rem; }
.page .after { margin: 1.75rem 0 0; font-size: 14px; color: var(--muted); }

[hidden] { display: none !important; }
