/* galadriel.com: board 1 ("First run: the home, signed out", clearer text) and board 2b ("early access after the
   prompt") of the Galadriel editor layouts, at their sizes on wide screens; below 900 px the text and the prompt box
   move under the video. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/fonts/dm-sans-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/fonts/dm-sans-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #0B0717;
  color: #111111;
  font-family: "DM Sans", Arial, sans-serif;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid #FFC94D; outline-offset: 2px; }

/* ---------------------------------------------------------------- the home */

.home { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: #0B0717; }
.hero { position: relative; z-index: 1; padding-bottom: 28px; }
.reel-wrap { position: relative; }
/* 16:9 across the width, as the board; never taller than the screen, so the prompt box stays in the first view (a
   shorter box crops the video's top and bottom a little rather than leaving bars at its sides). */
.reel { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: max(calc(100svh - 28px), 480px); overflow: hidden; background: #0B0717; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 17% at 50% 78%, rgba(11,7,23,.62) 0%, rgba(11,7,23,.5) 65%, rgba(11,7,23,0) 100%),
    linear-gradient(180deg, rgba(11,7,23,0) 95.5%, #0B0717 100%);
}

.sound { position: absolute; right: 28px; bottom: -5px; z-index: 3; }
.sound-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 20px; background: rgba(16,12,28,.58);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: #FFFFFF; font-size: 13px; font-weight: 500;
}
.sound-btn .icon-on { display: none; }
.sound-btn[aria-pressed="true"] .icon-on { display: block; }
.sound-btn[aria-pressed="true"] .icon-off { display: none; }

.stage {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 2;
  width: min(1100px, 100% - 64px);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.pitch { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pitch h1 {
  margin: 0; font-size: clamp(36px, 3.4vw, 48px); line-height: 1.1; font-weight: 400; letter-spacing: -0.012em; color: #FFFFFF;
  text-shadow: 0 0 2px rgba(11,7,23,.9), 0 1px 1px rgba(11,7,23,.55), 0 0 24px rgba(11,7,23,.7);
}
.pitch p {
  margin: 0; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.45; font-weight: 500; color: rgba(255,255,255,.92);
  text-shadow: 0 0 2px rgba(11,7,23,.95), 0 1px 1px rgba(11,7,23,.6), 0 0 24px rgba(11,7,23,.8);
}

/* The prompt box. */
.prompt {
  container-type: inline-size;
  width: min(1024px, 100%, 100vw - 360px);
  display: flex; flex-direction: column;
  border-radius: 16px; background: #FFFFFF; color: #111111;
  box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 24px 60px rgba(0,0,0,.45);
}
.prompt-text { position: relative; margin: 22px 24px 8px; }
.prompt-text textarea {
  display: block; width: 100%; height: 27px; min-height: 27px; max-height: 162px; margin: 0; padding: 0;
  border: 0; outline: none; resize: none; background: transparent; overflow-y: auto;
  font-size: 18px; line-height: 1.5; color: #111111;
}
.prompt-text textarea::placeholder { color: transparent; }
.prompt:focus-within { box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 2px 4px rgba(0,0,0,.12), 0 24px 60px rgba(0,0,0,.45); }

/* The typed examples, shown while the box is empty. */
.typer { position: absolute; inset: 0 0 auto 0; height: 27px; font-size: 18px; line-height: 1.5; color: #6E737B; pointer-events: none; overflow: hidden; }
.prompt-text textarea:not(:placeholder-shown) + .typer { display: none; }
.ty { position: absolute; left: 0; top: 0; white-space: nowrap; clip-path: inset(0 100% 0 0); animation: ty 30s infinite; }
.ty::after { content: ""; display: inline-block; width: 2px; height: 20px; margin-left: 2px; vertical-align: -4px; background: #111111; animation: tyc 1s steps(1) infinite; }
.ty:nth-child(1) { animation-delay: -0.9s; }
.ty:nth-child(2) { animation-delay: 5.1s; }
.ty:nth-child(3) { animation-delay: 11.1s; }
.ty:nth-child(4) { animation-delay: 17.1s; }
.ty:nth-child(5) { animation-delay: 23.1s; }
@keyframes ty {
  0% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(48, end); }
  9% { clip-path: inset(0 0 0 0); }
  17% { clip-path: inset(0 0 0 0); animation-timing-function: steps(24, end); }
  19.5% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}
@keyframes tyc { 50% { opacity: 0; } }

.prompt-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px 16px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid #DCDFE3; border-radius: 17px; font-size: 13px; color: #111111; white-space: nowrap; user-select: none; }
.chip-plus { justify-content: center; width: 34px; padding: 0; }
.spacer { flex: 1; }
.model { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; margin-right: 6px; border-radius: 17px; font-size: 13px; color: #111111; white-space: nowrap; user-select: none; }
.model-effort { color: #6E737B; }
.model-caret { font-size: 10px; }
.btn-design {
  height: 46px; padding: 0 18px; border: 1px solid #8A9099; border-radius: 10px; background: #FFFFFF; color: #111111;
  font-size: 15px; font-weight: 500; white-space: nowrap;
}
.btn-build {
  height: 46px; padding: 0 24px; border: 0; border-radius: 10px; background: #111111; color: #FFFFFF;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
}
.btn-design:hover { background: #F2F3F5; }
.btn-build:hover { background: #2A2A2E; }
.prompt :focus-visible { outline-color: #111111; }
/* A narrower box drops the app's controls, the model first. */
@container (max-width: 720px) { .model { display: none; } }
@container (max-width: 560px) { .chip { display: none; } }

.account { position: absolute; right: 28px; top: 20px; z-index: 3; display: flex; gap: 8px; }
.btn-signup { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: #FFC94D; color: #111111; font-size: 14px; font-weight: 600; }
.btn-signin { height: 36px; padding: 0 14px; border: 1px solid #FFFFFF; border-radius: 10px; background: #FFFFFF; color: #111111; font-size: 14px; font-weight: 500; }

.foot { padding: 8px 28px 28px; text-align: center; font-size: 13px; color: rgba(255,255,255,.55); }
.foot a { color: rgba(255,255,255,.8); }

/* ---------------------------------------------------------------- phones and narrow windows */

@media (max-width: 899px) {
  .hero { padding-bottom: 0; }
  .reel { max-height: none; }
  .sound { right: 12px; bottom: 12px; }
  .sound-btn { height: 34px; padding: 0 12px; font-size: 12px; }
  .stage { position: relative; left: auto; bottom: auto; transform: none; width: auto; margin: 20px 16px 0; gap: 20px; }
  .pitch h1 { font-size: clamp(28px, 7.4vw, 40px); }
  .pitch p { font-size: clamp(16px, 4.2vw, 18px); }
  .prompt { width: 100%; }
  .prompt-text { margin: 18px 18px 6px; }
  .prompt-bar { padding: 12px 12px 12px; }
  .account { right: 12px; top: 12px; }
  .btn-signup, .btn-signin { height: 34px; padding: 0 12px; font-size: 13px; }
  .foot { padding-top: 28px; }
}
@media (max-width: 560px) {
  .prompt-bar .spacer { display: none; }
  .btn-build { flex: 1; padding: 0 16px; }
  /* The examples don't fit a phone's line: the first one stands still, wrapped. */
  .typer { height: auto; overflow: visible; }
  .ty { animation: none; position: static; display: none; white-space: normal; }
  .ty:first-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; clip-path: none; }
  .ty::after { display: none; }
  .prompt-text textarea { min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .ty { animation: none; }
  .ty:first-child { clip-path: none; }
  .ty::after { animation: none; }
}

/* ---------------------------------------------------------------- early access (board 2b) */

.ea {
  width: min(420px, 100vw - 24px); max-height: calc(100svh - 24px); padding: 28px; border: 0; border-radius: 18px;
  background: #FFFFFF; color: #111111; box-shadow: 0 24px 64px rgba(0,0,0,.35); overflow-y: auto;
}
.ea::backdrop { background: rgba(7,10,20,.5); }
.ea-step { display: flex; flex-direction: column; gap: 14px; }
.ea-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ea-head-end { justify-content: flex-end; }
.ea-title { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.ea-title:focus { outline: none; }
.ea-close { width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 8px; background: #F2F3F5; color: #111111; display: flex; align-items: center; justify-content: center; }
.ea-art {
  position: relative; height: 132px; border-radius: 12px; overflow: hidden; border: 1px solid #ECEAF6;
  background: linear-gradient(180deg, #FBFBFE 0%, #F1EFFA 52%, #E9E4FA 60%, #F4F2FB 60.4%, #F7F6FC 100%);
}
.ea-floor { position: absolute; inset: 0; }
.ea-star { position: absolute; left: 50%; top: 12px; margin-left: -27px; filter: drop-shadow(0 4px 10px rgba(91,45,184,.25)); }
.ea-idea {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: min(330px, 100% - 24px);
  padding: 5px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E3E4E7; color: #3A3D44;
  font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(16,24,40,.06);
}
.ea-idea b { font-weight: 600; color: #111111; }
.ea-copy { margin: 0; font-size: 15px; line-height: 1.5; color: #3A3D44; }
.ea-copy b { font-weight: 600; color: #111111; overflow-wrap: anywhere; }
.ea-form { display: flex; flex-direction: column; gap: 14px; }
.ea-label { font-size: 13px; font-weight: 600; color: #3A3D44; }
.ea-form input[type="email"] {
  height: 46px; margin-top: -8px; padding: 0 14px; border: 1px solid #8A9099; border-radius: 10px;
  font-size: 15px; color: #111111; width: 100%; background: #FFFFFF;
}
.ea-form input[type="email"]:focus-visible { outline: 2px solid #111111; outline-offset: 1px; }
.ea-form input[aria-invalid="true"] { border-color: #B42318; }
.ea-error { margin: -6px 0 0; font-size: 13px; line-height: 1.4; color: #B42318; }
.ea-submit { height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: #111111; color: #FFFFFF; font-size: 15px; font-weight: 600; }
.ea-submit[disabled] { opacity: .6; cursor: progress; }
.ea-note { margin: -4px 0 0; font-size: 12.5px; line-height: 1.45; color: #6E737B; }
.ea-note a { color: #3A3D44; }
.ea :focus-visible { outline-color: #111111; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ea-thanks { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 4px 8px 8px; }
.ea-check { width: 48px; height: 48px; border-radius: 24px; background: #E8F6EE; color: #12804A; display: flex; align-items: center; justify-content: center; }
.ea-badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 8px; border-radius: 999px; background: #0D0A1F; color: #FFFFFF; font-size: 13px; font-weight: 600; }
.ea-badge svg { display: block; overflow: visible; }
.ea-done-btn { height: 46px; padding: 0 20px; border: 1px solid #8A9099; border-radius: 10px; background: #FFFFFF; color: #111111; font-size: 15px; font-weight: 600; }

@media (max-width: 560px) {
  .ea { padding: 22px; }
}
