/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #17342a;
  background: #f3f8f4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body { min-height: 100vh; margin: 0; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

.admin-auth, .admin-shell {
  width: min(42rem, calc(100% - 2rem));
  margin: 3rem auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #cfe0d5;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgb(22 62 47 / 8%);
}

.admin-shell header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.eyebrow { color: #477363; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.admin-form { display: grid; gap: .65rem; margin-top: 1.5rem; }
.admin-form input, .admin-form textarea, .admin-form select { font: inherit; padding: .75rem; border: 1px solid #91ac9f; border-radius: .5rem; }
button, input[type="submit"], a { font: inherit; }
button, input[type="submit"] { padding: .75rem 1rem; border: 0; border-radius: .5rem; color: #fff; background: #176b4c; cursor: pointer; }
button.secondary { color: #17342a; background: #e2eee7; }
.secret-display, .recovery-codes { padding: 1rem; background: #edf5f0; border-radius: .5rem; }
.secret-display dd { margin: .25rem 0 1rem; }
.breakable { overflow-wrap: anywhere; }
.flash { width: min(42rem, calc(100% - 2rem)); margin: 1rem auto; }
.admin-navigation { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.admin-shell table { width: 100%; margin-top: 1.5rem; border-collapse: collapse; }
.admin-shell th, .admin-shell td { padding: .75rem; border-bottom: 1px solid #dce9e1; text-align: left; vertical-align: top; }
.hidden-content { padding: 1rem; border: 2px solid #d79b42; border-radius: .5rem; background: #fff9ed; }
.hidden-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.button-link { display: inline-block; padding: .65rem .85rem; border-radius: .5rem; color: #fff; background: #176b4c; }
.public-result { min-height: 100vh; display: grid; place-items: center; padding: 1rem; box-sizing: border-box; }
.share-card { width: min(34rem, 100%); padding: clamp(1.5rem, 6vw, 3.5rem); box-sizing: border-box; border-radius: 1.5rem; background: #fff; border: 1px solid #cfe0d5; box-shadow: 0 1rem 3rem rgb(22 62 47 / 10%); text-align: center; }
.share-result-title { display: grid; gap: .35rem; margin: .5rem 0; font-size: clamp(1.55rem, 6vw, 2.35rem); line-height: 1.1; }
.share-result-title strong { font-size: clamp(2.2rem, 10vw, 4rem); letter-spacing: -.04em; }
.share-placement { margin-block: 1rem .5rem; font-size: clamp(1.05rem, 3.5vw, 1.3rem); font-weight: 700; }
.share-streaks { margin-inline: auto; max-width: 30rem; color: #315f50; line-height: 1.5; }
.share-meter { margin-bottom: .35rem; font-size: clamp(1.15rem, 4.5vw, 1.75rem); letter-spacing: .04em; overflow-wrap: anywhere; }
.share-meter-explanation { margin-top: 0; color: #477363; font-size: .85rem; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.5rem; }
.share-actions .button-link { min-height: 2.75rem; display: inline-flex; align-items: center; text-decoration: none; }
.share-actions .secondary-link { color: #17342a; background: #e2eee7; }
.share-notice { min-height: 1.5em; }
.share-tagline { margin-top: 2rem; font-weight: 700; }
.public-home, .public-policy {
  width: min(64rem, calc(100% - 2rem));
  margin: clamp(1rem, 4vw, 2.5rem) auto;
}
.public-home {
  --home-ink: #0f302d;
  --home-orange: #e4471b;
  --home-sage: #d8e1d3;
  width: min(90rem, calc(100% - 3rem));
  color: var(--home-ink);
}
.public-policy {
  padding: clamp(1.25rem, 5vw, 3.5rem);
  background: #fff;
  border: 1px solid #cfe0d5;
  border-radius: clamp(.9rem, 2.5vw, 1.5rem);
  box-shadow: 0 1rem 3rem rgb(22 62 47 / 8%);
}
.public-home h1 {
  max-width: 9ch;
  margin: .6rem 0 1.25rem;
  font: 700 clamp(3.4rem, 7.2vw, 7rem)/.87 Georgia, serif;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.public-home h2, .public-policy h1, .public-policy h2 { font-family: Georgia, serif; text-wrap: balance; }
.public-home h2 { margin: 0; max-width: 17ch; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.02; }
.public-policy h1 { margin-block: .4rem 1.25rem; font-size: clamp(2.25rem, 7vw, 4rem); line-height: 1; }
.public-policy h2 { margin-block: 2rem .65rem; font-size: clamp(1.35rem, 3.5vw, 1.85rem); line-height: 1.15; }
.public-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, .95fr);
  gap: clamp(2rem, 5vw, 6rem);
  min-height: clamp(34rem, 65vh, 46rem);
  padding: clamp(2rem, 5vw, 5.5rem);
  overflow: hidden;
  border: 1px solid #7f988d;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 80% 10%, rgb(255 255 255 / 92%), transparent 28%),
    linear-gradient(135deg, #fbfaf2 0%, #f5f3e8 72%, #e8ece1 100%);
  box-shadow: 0 1.2rem 3.5rem rgb(24 57 49 / 12%);
}
.public-hero::after {
  position: absolute;
  right: -4%;
  bottom: -6rem;
  width: 58%;
  height: 11rem;
  content: "";
  background: #173f3b;
  clip-path: polygon(0 76%, 8% 61%, 17% 73%, 27% 35%, 35% 58%, 47% 18%, 59% 57%, 68% 29%, 77% 62%, 89% 42%, 100% 66%, 100% 100%, 0 100%);
  opacity: .12;
  pointer-events: none;
}
.public-hero-copy { position: relative; z-index: 1; align-self: center; }
.public-hero-copy .eyebrow { margin: 1.1rem 0 0; color: #496b60; letter-spacing: .18em; }
.prelaunch-kicker {
  width: fit-content;
  margin: 0;
  color: var(--home-orange);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.public-hero-deck { max-width: 34rem; margin: 0; font: 400 clamp(1.1rem, 1.8vw, 1.45rem)/1.45 Georgia, serif; }
.public-hero-note { margin: 1.75rem 0 0; color: #547068; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .75rem;
  margin-top: .65rem;
  border-bottom: 2px solid var(--home-orange);
  color: var(--home-ink);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.hero-action::after { content: "→"; font-family: Inter, sans-serif; font-size: 1.4rem; }
.prompt-score-visual {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 0 clamp(1rem, 3vw, 3rem);
  min-width: 0;
}
.answer-card {
  display: grid;
  min-height: 15rem;
  place-items: center;
  align-content: space-between;
  padding: 1.4rem;
  border: 1px solid #c8cabe;
  border-radius: 1rem;
  background: rgb(255 255 255 / 65%);
  box-shadow: 0 .8rem 1.8rem rgb(22 48 43 / 10%);
}
.answer-owner { font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.answer-shape { display: block; width: clamp(4rem, 7vw, 6.5rem); height: clamp(4rem, 7vw, 6.5rem); }
.answer-shape-triangle { background: #15534b; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.answer-shape-circle { border-radius: 50%; background: var(--home-orange); }
.answer-hidden { width: 100%; padding: .55rem; border-radius: 999px; background: #e9e9df; text-align: center; letter-spacing: .45em; }
.score-connector {
  grid-column: 1 / -1;
  justify-self: center;
  width: 54%;
  height: 3.5rem;
  border-right: 2px solid #17342a;
  border-bottom: 2px solid #17342a;
  border-left: 2px solid #17342a;
  border-radius: 0 0 1.5rem 1.5rem;
}
.team-score { grid-column: 1 / -1; margin-top: 1.4rem; }
.score-track { position: relative; height: 2.6rem; padding: .42rem; border: 1px solid #b8b9ad; border-radius: 999px; background: #f8f7ef; box-shadow: 0 .4rem 1rem rgb(22 48 43 / 9%); }
.score-track::after { position: absolute; top: 50%; left: 68%; width: 2.2rem; height: 2.2rem; border: 2px solid #fff; border-radius: 50%; background: #123d3a; content: ""; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px #123d3a; }
.score-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--home-orange), #d9b067 42%, #3d7167 70%, #123d3a); }
.score-scale { display: grid; grid-template-columns: 2rem 1fr 2rem; align-items: center; margin-top: .75rem; font-family: Georgia, serif; font-size: 1.1rem; }
.score-scale strong { justify-self: center; font-family: Inter, sans-serif; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.score-scale span:last-child { justify-self: end; }
.privacy-summary {
  display: grid;
  grid-template-columns: minmax(18rem, 1.15fr) minmax(18rem, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid #a7b9af;
  border-radius: 1.1rem;
  background: var(--home-sage);
}
.privacy-heading { display: grid; grid-template-columns: 3.75rem 1fr; gap: 1.25rem; align-items: center; }
.privacy-heading .eyebrow { margin: 0 0 .4rem; }
.privacy-retention { max-width: 32rem; margin: .75rem 0 0; color: #49675e; font-size: .82rem; line-height: 1.45; }
.privacy-lock { position: relative; display: block; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: rgb(255 255 255 / 52%); }
.privacy-lock::before { position: absolute; top: 1.65rem; left: 1.3rem; width: 1.15rem; height: .95rem; border-radius: .2rem; background: #19463f; content: ""; }
.privacy-lock::after { position: absolute; top: 1rem; left: 1.52rem; width: .7rem; height: .85rem; border: 3px solid #19463f; border-bottom: 0; border-radius: .65rem .65rem 0 0; content: ""; }
.privacy-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.privacy-facts p { margin: 0; padding-left: 1.5rem; border-left: 1px solid #91aa9e; line-height: 1.5; }
.privacy-facts strong { display: block; margin-bottom: .25rem; font-family: Georgia, serif; font-size: 1.08rem; }
.privacy-link { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--home-ink); font-weight: 750; text-underline-offset: .25em; }
.public-policy ul { margin-block: 1rem; padding-inline-start: clamp(1.25rem, 4vw, 1.75rem); }
.public-policy li { margin-block: .7rem; padding-inline-start: .2rem; line-height: 1.55; }
.prelaunch-label, .policy-warning {
  width: fit-content;
  max-width: 100%;
  padding: .8rem 1rem;
  border: 1px solid #dfbd77;
  border-radius: .6rem;
  background: #fff3db;
  overflow-wrap: anywhere;
}
.public-navigation { display: flex; gap: .5rem 1rem; align-items: center; margin-bottom: 1rem; padding: .25rem .2rem .85rem; border-bottom: 1px solid #b8c9bf; }
.public-navigation a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .45rem .3rem;
  color: #176b4c;
  font-weight: 700;
  text-underline-offset: .2em;
}
.public-navigation a[aria-current="page"] { color: #17342a; text-decoration-thickness: .16em; }
.public-navigation .public-brand {
  margin-right: auto;
  gap: .7rem;
  padding-inline: .15rem .65rem;
  color: #123d38;
  text-decoration: none;
}
.public-brand-mark { font: 700 2.05rem/1 Georgia, serif; letter-spacing: -.04em; }
.public-brand-spark { color: var(--home-orange, #e4471b); font-size: 1rem; }
.public-brand-name { padding-left: .8rem; border-left: 1px solid #a8b9b0; font: 400 1rem/1.1 Georgia, serif; }
.public-navigation-links { display: flex; flex-wrap: wrap; gap: .25rem .9rem; justify-content: flex-end; }
.public-footer { margin-top: 1rem; padding: 1rem 0 max(1rem, env(safe-area-inset-bottom)); color: #477363; font-size: .9rem; }
.public-footer > p { margin-block: 0; }
.public-footer .public-navigation { margin: 0; border: 0; }
.public-policy p { line-height: 1.65; }
.public-policy a, .public-policy code, .public-footer { overflow-wrap: anywhere; }
.public-policy code { font-size: .9em; }
.public-home a:focus-visible, .public-policy a:focus-visible { outline: 3px solid #2f7dd1; outline-offset: 3px; border-radius: .2rem; }

@media (max-width: 36rem) {
  .admin-auth, .admin-shell { margin: 1rem auto; }
  .admin-shell header { align-items: flex-start; flex-direction: column; }
  .public-home, .public-policy { width: min(100% - 1rem, 64rem); margin: .5rem auto 1rem; }
  .public-policy { padding: clamp(1rem, 5vw, 1.5rem); }
  .public-hero { grid-template-columns: 1fr; gap: 2.5rem; min-height: auto; padding: 1.4rem; border-radius: .9rem; }
  .public-home h1 { font-size: clamp(3.1rem, 15vw, 4.35rem); overflow-wrap: break-word; }
  .public-hero-deck { font-size: 1.08rem; }
  .prompt-score-visual { gap: 0 .75rem; }
  .answer-card { min-height: 10.5rem; padding: .9rem; }
  .score-connector { height: 2.2rem; }
  .team-score { margin-top: 1rem; }
  .privacy-summary { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; border-radius: .9rem; }
  .privacy-facts { grid-template-columns: 1fr; gap: 1rem; }
  .public-navigation { display: block; margin-bottom: .75rem; }
  .public-navigation .public-brand { width: fit-content; min-height: 3.25rem; }
  .public-brand-mark { font-size: 1.8rem; }
  .public-brand-name { font-size: .88rem; }
  .public-navigation-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; margin-top: .2rem; }
  .public-navigation-links a { width: 100%; padding-inline: .1rem; font-size: clamp(.78rem, 3.8vw, .95rem); }
  .public-footer .public-navigation { margin-top: .5rem; }
  .share-card { padding: 1.25rem; border-radius: 1rem; }
  .share-actions { display: grid; grid-template-columns: 1fr; }
  .share-actions button, .share-actions .button-link { width: 100%; min-height: 3rem; justify-content: center; }
}

@media (min-width: 64rem) {
  .public-home { width: min(90rem, calc(100% - 3rem)); }
}
