:root {
  --bg: #090909;
  --surface: #161311;
  --surface-strong: #f8fafc;
  --text: #f8fafc;
  --muted: #a7a29b;
  --border: #3a332d;
  --accent: #f28c38;
  --accent-strong: #FFAD56;
  --ring: color-mix(in srgb, var(--accent), transparent 65%);
  --radius: 24px;
  --shadow: 0 18px 42px rgb(0 0 0 / 22%);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
  radial-gradient(
    circle at top left,
    rgb(255 140 40 / 28%) 0%,
    transparent 46rem
  ),
  radial-gradient(
    circle at top right,
    rgb(255 190 90 / 18%) 0%,
    transparent 40rem
  ),
  radial-gradient(
    circle at center,
    rgb(255 120 40 / 12%) 0%,
    transparent 58rem
  ),
  linear-gradient(
    180deg,
    #35261f 0%,
    #412e26 45%,
    #4d372d 100%
  );
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgb(255 255 255 / 48%);
  background: rgb(248 250 252 / 78%);
  backdrop-filter: blur(16px);
}

.steps li{
  border-radius: var(--radius);
  background: rgb(22 19 17 / 88%);
  border-color: rgb(255 255 255 / 8%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 32%);
}

.site-header,
.trust-band{
  background: rgb(22 19 17 / 88%);
  border-color: rgb(255 255 255 / 8%);
}

.nav,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}

.brand,
.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: transparent;
      cursor: pointer;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--surface-strong);
}

.nav-cta {
  font-weight: 700;
  color: var(--accent-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 28px;
  align-items: stretch;
  padding-block: clamp(48px, 8vw, 112px);
}

.hero-card,
.trust-band{
  border-radius: var(--radius);
  background: rgb(255 255 255 / 74%);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  border-radius: var(--radius);
  padding: clamp(28px, 6vw, 64px);
  background:
    linear-gradient(
      180deg,
      rgb(28 24 21 / 96%),
      rgb(15 14 13 / 98%)
    );
  border: 1px solid rgb(242 140 56 / 18%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 32%);
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 320px;
  padding: 28px;
  color: white;
  background:
  radial-gradient(
    circle at top left,
    rgb(255 210 140 / 18%),
    transparent 42%
  ),
  linear-gradient(
    -200deg,
    #FFAD56 0%,
    #cf6f25 40%,
    #7a2d05 100%
  );
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
  overflow: hidden;
  position: relative;
}

.m4l-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  justify-content: stretch;
  gap: 14px;
  padding: clamp(22px, 3vw, 28px);
}

.m4l-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgb(255 255 255 / 82%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.m4l-badge {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 24px;
  padding-inline: 8px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgb(18 16 14 / 92%);
  box-shadow: 0 5px 14px rgb(0 0 0 / 18%);
  letter-spacing: 0.04em;
}

.m4l-title {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.m4l-copy {
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: 0.94rem;
  line-height: 1.42;
}

.m4l-device-preview {
  align-self: center;
  width: 100%;
  margin: 3px 0 1px;
  padding: 7px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 11px;
  background: rgb(14 13 12 / 94%);
  box-shadow: 0 14px 26px rgb(55 18 1 / 30%);
}

.m4l-device-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.m4l-card-actions {
  display: grid;
  align-self: end;
  gap: 8px;
}

.m4l-download {
  width: 100%;
  justify-content: space-between;
  color: var(--text);
  background: rgb(18 16 14 / 94%);
  border: 1px solid rgb(255 255 255 / 12%);
  box-shadow: 0 10px 24px rgb(66 22 2 / 24%);
}

.m4l-download:hover {
  color: var(--text);
  background: #0f0e0d;
  box-shadow: 0 13px 28px rgb(66 22 2 / 32%);
  transform: translateY(-1px);
}

.m4l-download-arrow {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}

.m4l-requirements {
  margin: 0;
  color: rgb(255 255 255 / 66%);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.choice:has(input:focus-visible) {
  outline: 1px solid var(--ring);
  outline-offset: 0px;
}

.primary {
  color: #14100d;
  background: linear-gradient(135deg, #f28c38, #FFAD56);
}

.primary:hover {
  background: linear-gradient(135deg, #ff8f3a, #FFAD56);
}

.secondary {
  color: var(--text);
  background: #2a211b;
}

.secondary:hover {
  color: var(--text);
  background: #332922;
}

.form-section,
.content-grid,
.trust-band {
  margin-block: 32px;
}

.section-intro {
  margin-bottom: 18px;
}

.composer-form {
  display: grid;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px);
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.status,
.site-footer,
.steps p,
.trust-band {
  color: var(--muted);
}

.status {
  flex: 1 1 280px;
  margin: 0;
}

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

.steps li,
.trust-band {
  padding: 22px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.generation-controls {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.25fr)
    minmax(112px, 0.55fr)
    minmax(230px, 1fr);
  gap: 14px;
  align-items: end;
}

.generation-control {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.field-heading {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 0;
  color: #f3a04d;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  float: left;
  padding: 0;
}

legend.field-heading + * {
  clear: both;
}

.field-heading::before {
  content: "";
  width: 18px;
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, #FFAD56, transparent);
}

.tooltip {
  position: relative;
  z-index: 4;
  display: inline-grid !important;
  width: 17px;
  height: 17px;
  min-height: 17px !important;
  flex: 0 0 17px;
  place-items: center;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgb(255 173 86 / 48%);
  border-radius: 999px !important;
  color: #FFAD56 !important;
  background: rgb(20 16 13 / 42%) !important;
  font-size: 0.66rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
  font-family: inherit;
  appearance: none;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 30;
  width: max-content;
  max-width: min(220px, 72vw);
  padding: 8px 10px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  color: var(--text);
  background: rgb(22 19 17 / 98%);
  box-shadow: 0 12px 28px rgb(0 0 0 / 34%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 120ms ease;
}

.tooltip:hover::after,
.tooltip:focus::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tooltip:focus-visible {
  outline: 1px solid var(--ring);
  outline-offset: 2px;
}

.option-group {
  border: 0;
  padding: 0;
  margin: 0;
}

.mini-pills {
  display: flex;
  gap: 8px;
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 18px;
  background: rgb(255 255 255 / 3%);
  box-shadow: inset 0 1px rgb(255 255 255 / 4%);
  backdrop-filter: blur(12px);
}

.mini-pills label {
  flex: 1;
  cursor: pointer;
}

.mini-pills input,
.mode-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mini-pills label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 700;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.mini-pills input:checked + span {
  color: #14100d;
  background: linear-gradient(135deg, #f28c38, #FFAD56);
}

.mini-pills label:hover > span {
  background: rgb(255 255 255 / 4%);
}

.mini-pills input:checked + span:hover {
  background: linear-gradient(135deg, #f39a49, #FFAD56);
}

.mini-pills input:focus-visible + span,
.mode-pill input:focus-visible + span {
  outline: 1px solid var(--ring);
  outline-offset: 1px;
}

.number-input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 18px;
  color: var(--text);
  background: rgb(255 255 255 / 3%);
  box-shadow: inset 0 1px rgb(255 255 255 / 4%);
  font-weight: 750;
}

.number-input:focus {
  border-color: rgb(242 140 56 / 40%);
  outline: none;
}

.number-input:disabled {
  color: rgb(255 255 255 / 62%);
  cursor: not-allowed;
  opacity: 1;
}

.time-signature-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.time-signature-inputs > span {
  color: rgb(255 255 255 / 62%);
  font-size: 1.15rem;
  font-weight: 700;
}

.temperature-control {
  padding: 0;
}

.temperature-box {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 3px 14px 6px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 18px;
  background: rgb(255 255 255 / 3%);
  box-shadow: inset 0 1px rgb(255 255 255 / 4%);
}

.temperature-box input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  accent-color: var(--accent-strong);
}

.temperature-control input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 28%);
}

.temperature-control input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7.5px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #FFAD56;
  box-shadow: 0 3px 10px rgb(0 0 0 / 35%);
}

.temperature-control input[type="range"]::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 28%);
}

.temperature-control input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: #f28c38;
}

.temperature-control input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #FFAD56;
  box-shadow: 0 3px 10px rgb(0 0 0 / 35%);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: rgb(255 255 255 / 52%);
  font-size: 0.78rem;
  font-weight: 600;
}

.reference-control {
  display: grid;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:
    linear-gradient(
      160deg,
      rgb(28 20 14 / 88%),
      rgb(16 16 16 / 96%)
    ),
    radial-gradient(
      circle at 20% 20%,
      rgb(255 122 24 / 18%),
      transparent 34%
    );
}

.mode-option {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}

.mode-pill {
  display: block;
  cursor: pointer;
}

.mode-pill > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 46px 0 20px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.mode-pill:has(input:checked) > span {
  color: #14100d;
  background: linear-gradient(135deg, #f28c38, #f5b66c);
}

.mode-pill:has(input:checked):hover > span {
  background: linear-gradient(135deg, #ff8f3a, #FFAD56);
}

.mode-option > .tooltip {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.mode-option > .tooltip::after,
.file-input > .tooltip::after {
  right: 0;
  left: auto;
  transform: translateY(4px);
}

.mode-option > .tooltip:hover::after,
.mode-option > .tooltip:focus::after,
.file-input > .tooltip:hover::after,
.file-input > .tooltip:focus::after {
  transform: translateY(0);
}

.mode-option:has(input:checked) > .tooltip {
  color: #3a2415 !important;
  border-color: rgb(58 36 21 / 38%);
  background: rgb(255 255 255 / 26%) !important;
}

.file-input[hidden] {
  display: none;
}

.file-input {
  position: relative;
}

.file-input > .tooltip {
  position: absolute;
  top: 14px;
  right: 14px;
}

.file-dropzone {
  position: relative;
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed #f28c38;
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(
      circle at center,
      rgb(242 140 56 / 12%),
      transparent 60%
    ),
    rgb(255 255 255 / 3%);
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
}

.file-dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(0 0 0 / 25%);
}

.upload-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter:
    brightness(0)
    saturate(100%)
    invert(74%)
    sepia(49%)
    saturate(1617%)
    hue-rotate(338deg)
    brightness(101%)
    contrast(95%);
}

.file-dropzone strong {
  font-size: 1.15rem;
  font-weight: 850;
}

.file-dropzone small {
  color: #FFAD56;
  font-size: 1rem;
}

.file-dropzone:hover {
  border-color: #FFAD56;
  background:
    radial-gradient(
      circle at center,
      rgb(242 140 56 / 18%),
      transparent 60%
    ),
    rgb(255 255 255 / 4%);
}

.prompt-field {
  display: grid;
  gap: 8px;
}

.prompt-field textarea {
  width: 100%;
  min-height: 160px;
  padding: 28px 30px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 28px;
  color: var(--text);
  background: rgb(255 255 255 / 8%);
  box-shadow: none;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left;
  resize: vertical;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.prompt-field textarea::placeholder {
  color: rgb(255 255 255 / 36%);
  white-space: pre-line;
  line-height: 1.8;
}

.prompt-field textarea:focus {
  border-color: rgb(242 140 56 / 40%);
  background: rgb(255 255 255 / 3%);
  outline: none;
}

.form-footer .primary {
  min-width: 170px;
  min-height: 54px;
  font-size: 1rem;
}

.generate-button img{
  width: 35px;
}

.icon-generate {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: linear-gradient(
      145deg,
      rgb(255 255 255 / 8%),
      rgb(255 255 255 / 3%)
    );
}

@media (max-width: 980px) {
  .generation-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }
}

@media (max-width: 580px) {
  .generation-controls {
    grid-template-columns: 1fr;
  }

  .mode-tabs {
    border-radius: 28px;
  }

  .mode-pill {
    flex-basis: 100%;
  }

  .mode-descriptions {
    display: none;
  }

  .prompt-field textarea {
    padding: 22px;
  }
}

/* Authentication modal */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(8px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(
      180deg,
      rgb(28 24 21 / 96%),
      rgb(15 14 13 / 98%)
    );
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.auth-dialog [hidden] {
  display: none !important;
}

.auth-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-heading {
  margin-bottom: 28px;
}

.auth-heading h2 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.05;
}

.auth-heading p:last-child {
  margin: 0;
  opacity: 0.72;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: -6px 0 22px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.auth-tab[aria-selected="true"] {
  border-color: rgba(242, 140, 56, 0.35);
  background: rgba(242, 140, 56, 0.16);
  color: var(--text);
}

.auth-tab:focus-visible,
.auth-inline-action:focus-visible,
.auth-text-button:focus-visible,
.auth-close:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field > span,
.auth-field-label-row label {
  font-size: 14px;
  font-weight: 600;
}

.auth-field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.auth-inline-action,
.auth-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-inline-action:hover,
.auth-text-button:hover {
  color: #ffc27f;
}

.auth-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font: inherit;
}

.auth-field input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.auth-hint {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-feedback {
  display: grid;
  min-width: 0;
}

.auth-turnstile {
  width: 100%;
  height: 0;
  min-width: 0;
  overflow: hidden;
}

.auth-turnstile.is-interactive {
  height: auto;
  min-height: 65px;
  margin-bottom: 12px;
  overflow: visible;
}

.auth-turnstile iframe {
  max-width: 100%;
}

.auth-status {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
}

.auth-status.is-error {
  color: #ff8f8f;
}

.auth-status.is-success {
  color: #91e6b3;
}

.auth-submit {
  width: 100%;
  margin-top: 10px;
}

.button:disabled,
.auth-tab:disabled,
.auth-inline-action:disabled,
.auth-text-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.auth-notice {
  display: grid;
  gap: 18px;
}

.auth-notice > p:first-child {
  margin: 0;
  color: var(--muted);
}

.auth-notice-actions {
  display: grid;
  gap: 10px;
}

.auth-notice-actions .button {
  width: 100%;
}

.auth-back-to-sign-in,
.auth-notice-actions .auth-text-button {
  justify-self: center;
}

.account-panel {
  display: grid;
  gap: 18px;
}

.account-email {
  margin: -14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-balance-card,
.starter-pack-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.account-balance-card {
  display: grid;
  gap: 4px;
}

.account-balance-card > span,
.account-balance-card small {
  color: var(--muted);
}

.account-balance-card > span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-balance-card strong {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.1;
}

.starter-pack-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.starter-pack-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.starter-pack-heading h3 {
  margin: 5px 0 2px;
  font-size: 1.35rem;
}

.starter-pack-heading p:not(.starter-pack-kicker),
.starter-pack-price {
  margin: 0;
}

.starter-pack-price {
  display: grid;
  flex: 0 0 auto;
  text-align: right;
}

.starter-pack-price strong {
  font-size: 1.45rem;
}

.starter-pack-price span,
.starter-pack-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.starter-pack-note {
  margin: 14px 0;
}

.starter-pack-buy,
.account-sign-out {
  width: 100%;
}

.account-status {
  min-height: 20px;
}

body.auth-modal-open {
  overflow: hidden;
}

.availability-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(50px, 7vw, 90px);
  align-items: stretch;
  margin-block: clamp(70px, 10vw, 130px);
}

/* LEFT SIDE */

.availability-copy {
  display: grid;
  grid-template-rows: repeat(3, 150px);
  gap: 18px;
}

.availability-title {
  align-self: center;
  margin-top:50px;
  font-size: clamp(2.4rem, 3.7vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.availability-title span,
.availability-coming span {
  color: var(--accent-strong);
}

.availability-coming {
  margin-top: -50px;
  font-size: clamp(2.4rem, 3.7vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}


/* waveform separator */

.availability-divider {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 65%;
  max-width: 450px;
  gap: 15px;
  margin: 0;
  color: var(--accent);
}

.availability-divider > span {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(242 140 56 / 65%)
  );
}

.availability-divider > span:last-child {
  background: linear-gradient(
    90deg,
    rgb(242 140 56 / 65%),
    transparent
  );
}

.availability-divider svg {
  width: 42px;
  height: 32px;
}


/* RIGHT SIDE */

.availability-cards {
  display: grid;
  grid-template-rows: repeat(3, 150px);
  gap: 18px;
}

.availability-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 150px;
  padding: 26px 30px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 26px;

  background:
    linear-gradient(
      145deg,
      rgb(24 21 18 / 96%),
      rgb(16 15 14 / 98%)
    );
  box-shadow:
    0 20px 55px rgb(0 0 0 / 24%),
    inset 0 1px rgb(255 255 255 / 3%);
}


/* circular icons */

.availability-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;

  color: var(--accent);

  background:
    linear-gradient(
      145deg,
      rgb(255 255 255 / 8%),
      rgb(255 255 255 / 3%)
    );
}

.availability-icon svg {
  width: 34px;
  height: 34px;
}


/* Sheeet logo in first card */

.availability-logo img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}


/* card typography */

.availability-card-copy {
  min-width: 0;
}

.availability-card-copy h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.availability-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.45;
}


/* orange arrow */

.availability-arrow {
  color: var(--accent);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
}

@media (max-width: 820px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .nav,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card {
    min-height: 220px;
  }

  .starter-pack-heading {
    flex-direction: column;
  }

  .starter-pack-price {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {

  .availability-section {
    align-self: center;
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    gap: 40px;
  }

  .availability-title,
  .availability-coming {
    font-size: clamp(2rem, 4vw, 2.8rem);
    align-self: center;
    margin-top: 0px;
  }

  .availability-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 24px;
  }

  .availability-icon {
    width: 60px;
    height: 60px;
  }

  .availability-icon svg {
    width: 30px;
    height: 30px;
  }

  .availability-logo img {
    width: 36px;
    height: 36px;
  }

  .availability-card-copy h3 {
    font-size: 1rem;
  }

  .availability-card-copy p {
    font-size: 0.9rem;
  }
}


/* Mobile */
@media (max-width: 760px) {

  .auth-open-button{
    margin-top: 12px;
  }

  .nav{
    flex-direction: row;
  }

  .form-footer{
    justify-content: center;
  }

  .availability-section {
    align-self: center;
    display: grid;
    grid-template-columns: 1fr;
    gap: 38px;
    margin-block: 60px;
  }


  /* LEFT SIDE */

  .availability-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .availability-title,
  .availability-coming {
    font-size: clamp(2.3rem, 10vw, 3.3rem);
    line-height: 1;
    align-self: center;
    margin-top: 0px;
  }

  .availability-divider {
    width: 100%;
    max-width: none;
    margin: 28px 0;
  }


  /* CARDS */

  .availability-cards {
    display: grid;
    grid-template-rows: none;
    gap: 14px;
  }

  .availability-card {
    min-height: auto;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;

    padding: 20px;

    border-radius: 22px;
  }

  .availability-icon {
    width: 58px;
    height: 58px;
  }

  .availability-icon svg {
    width: 28px;
    height: 28px;
  }

  .availability-logo img {
    width: 34px;
    height: 34px;
  }

  .availability-card-copy h3 {
    margin-bottom: 6px;
    font-size: 1rem;
  }

  .availability-card-copy p {
    font-size: 0.88rem;
    line-height: 1.4;
  }
}


/* Small mobile */
@media (max-width: 480px) {

  .auth-open-button{
    margin-top: 12px;
  }

  .nav{
    flex-direction: row;
  }

  .form-footer{
    justify-content: center;
  }

  .availability-section {
    margin-block: 48px;
    gap: 32px;
  }

  .availability-title,
  .availability-coming {
    font-size: clamp(2rem, 11vw, 2.7rem);
    align-self: center;
    margin-top: 0px;
  }

  .availability-divider {
    margin: 24px 0;
    gap: 10px;
  }

  .availability-divider svg {
    width: 36px;
    height: 28px;
  }

  .availability-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .availability-icon {
    width: 50px;
    height: 50px;
  }

  .availability-icon svg {
    width: 25px;
    height: 25px;
  }

  .availability-logo img {
    width: 30px;
    height: 30px;
  }

  .availability-card-copy h3 {
    font-size: 0.95rem;
  }

  .availability-card-copy p {
    font-size: 0.82rem;
  }
}
