/* The public site in Sahne (design/system/project/tokens.json): bone and ink, stage black in dark
   mode, orange for the one main action, Big Shoulders Display capitals and Space Grotesk text.
   Phone first; one column. No inline styles anywhere, so the Content-Security-Policy stays strict. */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('fonts/BigShouldersDisplay-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Variable.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --stage: #0b0b0c;
  --bone: #f1ede4;
  --canvas: #f1ede4;
  --surface: #fbf9f4;
  --surface-2: #e7e2d8;
  --text: #0b0b0c;
  --text-2: #55514a;
  --text-3: #8f8a80;
  --border: rgb(11 11 12 / 12%);
  --border-strong: rgb(11 11 12 / 50%);
  --brand: #ff6700;
  --on-brand: #0b0b0c;
  --live: #ccff2e;
  --on-live: #0b0b0c;
  /* Lime is invisible on bone: in the light theme it gets an ink keyline, like the app's stickers. */
  --live-edge: #0b0b0c;
  --inverse: #0b0b0c;
  --on-inverse: #f1ede4;
  --danger: #c01624;
  --focus: #0b0b0c;
  --field-focus: #0b0b0c;
  --focus-soft: rgb(255 103 0 / 28%);
  --band: #0b0b0c;
  --band-edge: #0b0b0c;
  --display: 'Big Shoulders Display', 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
  --ui: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b0b0c;
    --surface: #18181a;
    --surface-2: #222224;
    --text: #f1ede4;
    --text-2: #a39f96;
    --text-3: #6a675f;
    --border: rgb(255 255 255 / 11%);
    --border-strong: rgb(241 237 228 / 45%);
    --inverse: #f1ede4;
    --on-inverse: #0b0b0c;
    --danger: #ff6b6b;
    --focus: #ccff2e;
    --field-focus: #ff6700;
    --focus-soft: rgb(255 103 0 / 25%);
    /* The band lifts off the stage black, like the app's tab bar in dark mode. */
    --band: #18181a;
    --band-edge: rgb(255 255 255 / 14%);
    --live-edge: transparent;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.5 var(--ui);
}

/* The stage-black band with the a² mark, as in the emails. */
.band {
  border-bottom: 1px solid var(--band-edge);
  background: var(--band);
  color: var(--bone);
}

.band-inner,
.footer-inner,
main {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.band-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font: 800 24px/1 var(--display);
  letter-spacing: 0.01em;
}

main {
  flex: 1;
  padding-top: 48px;
  padding-bottom: 48px;
}

/* The tilted square: neutral, or orange when something went wrong. */
.mark {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text);
  transform: rotate(5deg);
}

.mark.problem {
  background: var(--brand);
  color: var(--on-brand);
}

.mark.valid {
  border: 2px solid var(--live-edge);
  background: var(--live);
  color: var(--on-live);
}

.mark svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: square;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--text-2);
  font: 600 13px/1.2 var(--ui);
  letter-spacing: 0.12em;
}

h1 {
  margin: 0 0 18px;
  font: 850 clamp(44px, 13vw, 60px)/0.95 var(--display);
  overflow-wrap: anywhere;
}

/* The accent word on its tilted orange block. */
.accent {
  display: inline-block;
  padding: 0 0.1em;
  border-radius: 4px;
  background: var(--brand);
  color: var(--on-brand);
  transform: rotate(-3deg);
}

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

form {
  display: grid;
  gap: 20px;
  margin: 28px 0 0;
}

.form-eyebrow {
  margin-top: 36px;
}

.form-eyebrow + form {
  margin-top: 0;
}

label {
  display: block;
  margin-bottom: 7px;
  font: 600 15px/1.3 var(--ui);
  color: var(--text);
}

.input {
  position: relative;
}

input[type='email'],
input[type='password'],
input[type='text'] {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: 400 17px var(--ui);
}

.input input {
  padding-right: 96px;
}

input:focus {
  outline: none;
  border: 2px solid var(--field-focus);
  box-shadow: 0 0 0 4px var(--focus-soft);
}

input[aria-invalid='true'] {
  border-color: var(--danger);
}

/* Show / hide, drawn small inside the field with a 48 px tap area. */
.reveal {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: 600 15px var(--ui);
  text-decoration: underline;
  cursor: pointer;
}

.hint,
.error {
  margin: 7px 0 0;
  font-size: 14px;
}

.error {
  color: var(--danger);
  font-weight: 600;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 8px 24px;
  border: 0;
  border-radius: 999px;
  font: 800 21px/1.1 var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

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

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  opacity: 0.5;
  cursor: default;
}

.button:focus-visible,
.reveal:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* A shared page's cover (W5): the image, full width, above the square. */
.cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
  border-radius: 20px;
  background: var(--surface-2);
  object-fit: cover;
}

/* A shared page's when and where (W5). */
.facts-line {
  color: var(--text);
  font-weight: 600;
}

/* What the app does (W4): ticks in lime squares. */
.points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--text);
  font-weight: 500;
}

.points li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--live-edge);
  border-radius: 8px;
  background: var(--live);
  color: var(--on-live);
  font-weight: 700;
}

/* The download page's QR (W4), for a visitor on a computer; phones have the store buttons. */
.qr-figure {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin: 32px 0 0;
}

.qr {
  width: 184px;
  height: 184px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.qr svg {
  width: 100%;
  height: 100%;
}

.qr-plate {
  fill: #fff;
}

.qr-ink {
  fill: #0b0b0c;
}

@media (max-width: 700px), (pointer: coarse) {
  .qr-figure {
    display: none;
  }
}

/* An invite's code (W4), large, with "Kodu kopyala". */
.code-box {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 28px 0 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.code-box .eyebrow {
  margin: 0;
}

.code {
  margin: 0 0 8px;
  color: var(--text);
  font: 850 44px/1 var(--display);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.button.secondary {
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

.open {
  margin: 16px 0 0;
}

/* A legal text (W1) and the support answers (W6): the API's Markdown as HTML. */
.prose {
  margin-top: 24px;
  color: var(--text-2);
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 32px 0 10px;
  color: var(--text);
  font: 850 30px/1 var(--display);
  text-transform: uppercase;
}

.prose h3,
.prose h4 {
  font-size: 24px;
}

.prose ul,
.prose ol,
.faq ul,
.faq ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.prose li,
.faq li {
  margin-bottom: 6px;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 4px solid var(--brand);
  border-radius: 4px 12px 12px 4px;
  background: var(--surface);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose strong,
.faq strong {
  color: var(--text);
}

.prose a,
.faq a {
  color: var(--text);
  font-weight: 600;
}

.prose figure {
  margin: 20px 0;
}

.prose img {
  width: 100%;
  border-radius: 16px;
}

.others ul {
  margin: 0;
  padding-left: 22px;
}

.others {
  margin-top: 36px;
}

.others a {
  color: var(--text);
}

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

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  padding: 16px 28px 16px 0;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 12px;
  font: 800 24px/1 var(--display);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin-top: 0;
}

/* How to do it in the app (W2): numbered steps, the numbers on ink squares. */
.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--text);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--inverse);
  color: var(--on-inverse);
  font: 850 24px/1 var(--display);
}

.steps li span {
  padding-top: 9px;
}

/* A certificate's facts (W3): label over value, the name large, the code in spaced numerals. */
.facts {
  margin: 28px 0 0;
  padding: 4px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.facts dt {
  margin-bottom: 4px;
  color: var(--text-3);
  font: 600 12px/1.2 var(--ui);
  letter-spacing: 0.12em;
}

.facts dd {
  margin: 0;
  color: var(--text);
  font: 500 17px/1.35 var(--ui);
  overflow-wrap: anywhere;
}

.facts .name dd {
  font: 700 26px/1.15 var(--ui);
  letter-spacing: -0.01em;
}

.facts .code dd {
  font: 800 28px/1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.more {
  margin-top: 24px;
}

.more a {
  color: var(--text);
  font-weight: 600;
}

/* Where to go next: the app and its stores. */
.app {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.app p:last-child {
  margin-bottom: 0;
}

.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.button.store {
  min-height: 52px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 19px;
}

footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: var(--text-3);
  font-size: 14px;
}

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

@media (prefers-reduced-motion: reduce) {
  .button:active {
    transform: none;
  }
}
