/* The one field a new project starts in (U28, U29; start-field.js): on the
   front page over the starry sky, the overview and the wizard's first step.
   Its own dark colours in both themes, so it looks the same everywhere. The
   accent is a calm blue: the main button, focus and what is chosen. */
.lp-start-host {
  --sky-text: #f4f6fb; --sky-text-2: rgba(226, 232, 246, 0.78); --sky-text-3: rgba(214, 222, 240, 0.66);
  --sky-field: rgba(8, 14, 32, 0.86); --sky-line: rgba(160, 186, 230, 0.22); --sky-line-strong: rgba(170, 196, 240, 0.4);
  --sky-hover: rgba(255, 255, 255, 0.07); --sky-tile: rgba(255, 255, 255, 0.05); --sky-error: #ffb4ab;
  --sky-go: #a9c1ff; --sky-go-soft: rgba(169, 193, 255, 0.12);
  --sky-btn: #3a4d82; --sky-btn-hover: #45599a; --sky-btn-text: #eef2ff;
  display: flex; flex-direction: column; align-items: center; width: 100%; color: var(--sky-text);
}
.lp-start {
  position: relative; z-index: 3; box-sizing: border-box; width: min(100%, 820px); margin-top: clamp(28px, 5vh, 48px); text-align: left;
  background: rgba(7, 13, 32, 0.78); border: 1px solid rgba(205, 218, 245, 0.26); border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-start:focus-within { border-color: var(--sky-line-strong); }
.lp-start__body { position: relative; padding: 24px 28px 6px; min-height: 56px; }
/* The field is as tall as the chosen way in, so the address view has no
   empty space under its two lines (U30). */
.lp-start__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.lp-start__body > .lp-start__pane { grid-row: 1; grid-column: 1; }
.lp-start__body > .lp-start__error { grid-row: 2; grid-column: 1; }
.lp-start__help { display: block; margin: 0 0 6px; color: var(--sky-text-3); font-size: 14px; }
/* The address: the content, shown as it is copied. */
.lp-start__label { margin: 0 0 12px; color: var(--sky-text); font-size: 16px; font-weight: 500; }
.lp-start__copytext { margin: 0; color: var(--sky-text); font-family: var(--hx-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: clamp(16px, 0.45vw + 12.5px, 20px); letter-spacing: 0.01em; line-height: 1.45; overflow-wrap: anywhere; user-select: all; }
.lp-start__help--under { margin: 6px 0 0; }
.lp-start__copyurl { white-space: nowrap; }
.lp-start__folder { display: block; margin: 0; color: var(--sky-text); font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.lp-start__folder strong { font-weight: 600; }
.lp-start__note { margin: 8px 0 0; color: var(--sky-text-3); font-size: 13.5px; line-height: 1.45; }
.lp-start__idea {
  box-sizing: border-box; display: block; width: 100%; resize: none; margin: 0; padding: 0; border: 0; background: transparent;
  color: var(--sky-text); font: inherit; font-size: clamp(17px, 0.5vw + 15px, 20px); line-height: 1.45; outline: none;
}
.lp-start__idea::placeholder { color: var(--sky-text-3); }
.lp-start__error { margin: 10px 0 0; color: var(--sky-error); font-size: 14.5px; line-height: 1.45; }
.lp-start__bar { height: 4px; margin-top: 12px; border-radius: 4px; background: var(--sky-line); overflow: hidden; }
.lp-start__bar span { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--sky-go); animation: lp-start-bar 1.2s ease-in-out infinite; }
@keyframes lp-start-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .lp-start__bar span { animation: none; width: 100%; opacity: .6; } }
.lp-start .hidden, .lp-start [hidden] { display: none !important; }

/* Something dragged over the field: only then the field says it takes it. */
.lp-start__drop-over { display: none; }
.lp-start.is-over { border-color: var(--sky-go); box-shadow: 0 0 0 3px rgba(169, 193, 255, 0.25), 0 24px 70px rgba(0, 0, 0, 0.45); }
.lp-start.is-over .lp-start__body > :not(.lp-start__drop-over) { visibility: hidden; }
.lp-start.is-over .lp-start__drop-over { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; margin: 0; color: var(--sky-text); font-size: 18px; }

.lp-start__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 18px 18px 28px; }
/* The main button: a calm blue that holds on the navy field. */
.lp-start__go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-left: auto; padding: 0 24px; border: 1px solid rgba(160, 185, 245, 0.25); border-radius: 14px;
  background: var(--sky-btn); color: var(--sky-btn-text); font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease;
}
.lp-start__go:hover { background: var(--sky-btn-hover); }
.lp-start__go.is-off { visibility: hidden; }
.lp-start__go:disabled { background: rgba(58, 77, 130, 0.45); color: rgba(238, 242, 255, 0.6); cursor: default; }
.lp-start__go .material-symbols-outlined { font-size: 20px; }
.lp-start-host :focus-visible { outline: 2px solid var(--sky-go); outline-offset: 2px; }
/* The idea is written straight into the field: no ring round the text box
   (it would run to the field's edges); the field itself shows the focus. */
.lp-start__idea:focus, .lp-start__idea:focus-visible { outline: none !important; }
.lp-start:has(.lp-start__idea:focus) { border-color: rgba(169, 193, 255, 0.55); box-shadow: 0 0 0 3px rgba(169, 193, 255, 0.14), 0 18px 50px rgba(0, 0, 0, 0.28); }



/* «Koble til KI-verktøy»: the tools' logos in the foot, as dark tiles. */
.lp-start__tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-start__tools.hidden { display: none; }
.lp-start__tool {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(220, 230, 250, 0.08); background: rgba(255, 255, 255, 0.04); color: var(--sky-text); cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.lp-start__tool:hover { background: var(--sky-hover); border-color: rgba(220, 230, 250, 0.2); }
.lp-start__tool svg { width: 22px; height: 22px; }
.lp-start__tool .material-symbols-outlined { font-size: 22px; }
.lp-start__link { color: var(--sky-go); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
/* H142: after sign-in, the next step under the address: how to connect, and
   the starter prompt for the AI tool with a button of its own. */
.lp-start__ready { margin: 0 28px; padding: 16px 0 22px; border-top: 1px solid var(--sky-line); }
.lp-start__ready > .lp-start__note { margin: 0 0 10px; }
.lp-start__prompt { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--sky-tile); color: var(--sky-text); font-size: 15px; line-height: 1.5; user-select: all; }
.lp-start__chip--small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }

/* «Koble til kode»: the code services as cards, each with its name and a
   line that says what a click does. */
.lp-start__repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-rows: 1fr; flex: 1; gap: 12px; margin-top: 12px; }
/* The cards fill the field: down over the main button's place, which this
   view leaves empty, without changing the field's height. */
.lp-start__pane[data-pane="repo"] { display: flex; flex-direction: column; }
.lp-start__body > .lp-start__pane[data-pane="repo"] { margin-bottom: -58px; }
.lp-start[data-mode="repo"] .lp-start__foot { pointer-events: none; }
.lp-start__repo {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-height: 120px; padding: 18px 18px 20px; border-radius: 16px;
  border: 1px solid var(--sky-line); background: var(--sky-tile); color: var(--sky-text); font: inherit; font-size: 16px; cursor: pointer; text-align: left;
  transition: background-color .15s ease, border-color .15s ease;
}
.lp-start__repo:hover { background: var(--sky-hover); border-color: var(--sky-line-strong); }
.lp-start__repo-head { display: flex; align-items: center; gap: 12px; padding-right: 14px; font-weight: 500; }
.lp-start__repo-head svg { flex: none; }
.lp-start__repo-line { color: var(--sky-text-2); font-size: 14.5px; line-height: 1.45; }
/* Already connected: green, with a small light in the corner. */
.lp-start__repo.is-on { border-color: rgba(63, 185, 80, 0.45); background: rgba(63, 185, 80, 0.12); }
.lp-start__repo.is-on:hover { background: rgba(63, 185, 80, 0.18); }
.lp-start__repo.is-on .lp-start__repo-line { color: #8fd99b; }
.lp-start__repo-on { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.2); }

/* «Start fra en mal»: the templates as choices, a title and one line each. */
.lp-start__tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 10px; }
.lp-start__tpl {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 14px; min-height: 56px;
  border: 1px solid var(--sky-line); background: var(--sky-tile); color: var(--sky-text); font: inherit; text-align: left; cursor: pointer;
}
.lp-start__tpl:hover { background: var(--sky-hover); }
.lp-start__tpl[aria-checked="true"] { border-color: var(--sky-go); box-shadow: inset 0 0 0 1px var(--sky-go); background: var(--sky-go-soft); }
.lp-start__tpl-title { font-size: 15.5px; font-weight: 600; }
.lp-start__tpl-line { font-size: 13.5px; line-height: 1.4; color: var(--sky-text-2); }
.lp-start__tpl-need { font-size: 12.5px; color: #f2c14e; }

/* «Last opp kode»: the box is the drop area, and a click on it chooses the folder. */
.lp-start__zone {
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 128px;
  padding: 20px 16px; border: 1.5px dashed var(--sky-line-strong); border-radius: 18px; background: rgba(255, 255, 255, 0.02);
  color: var(--sky-text); font: inherit; text-align: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.lp-start__zone:hover { background: var(--sky-hover); border-color: var(--sky-go); }
.lp-start__zone:disabled { cursor: progress; }
.lp-start__zone-icon { font-size: 30px; color: var(--sky-text-2); font-variation-settings: "wght" 300; }
.lp-start__zone-text { font-size: clamp(16px, 0.5vw + 14px, 19px); line-height: 1.4; }
.lp-start__zone .lp-start__bar { width: min(260px, 80%); }
.lp-start__zip { display: block; margin: 10px auto 0; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--sky-go); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* «Start med en idé»: the box asks. */
.lp-start__ask { display: block; margin: 0 0 10px; color: var(--sky-text); font-size: clamp(18px, 0.6vw + 15px, 22px); font-weight: 500; }

/* Under the field: the three most used ways in, quiet; the chosen one softly marked. */
.lp-start__chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.lp-start__chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(220, 230, 250, 0.35); background: rgba(7, 13, 32, 0.35); color: var(--sky-text);
  font: inherit; font-size: 15.5px; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lp-start__chip .material-symbols-outlined { font-size: 20px; font-variation-settings: "wght" 300; }
.lp-start__chip:hover { background: rgba(255, 255, 255, 0.08); }
.lp-start__chip[aria-pressed="true"] { border-color: rgba(120, 150, 225, 0.45); background: rgba(58, 77, 130, 0.85); }

/* Under the field, on the page: the page's own colour (the front page's sky sets its own, landing.css). */

/* The overview and the wizard's first step (H146): in the light theme the
   field is a light card on the light page, and the ways in under it are
   white, not dark glass that reads as grey and switched off. Phones only;
   the front page's sky and wider screens keep the dark field. */
@media (max-width: 639px) {
  [data-theme="light"] .lp-start-host--light {
    --sky-text: #14182b; --sky-text-2: #4a5068; --sky-text-3: #5f6580;
    --sky-line: rgba(20, 30, 70, 0.12); --sky-line-strong: rgba(60, 80, 160, 0.35);
    --sky-hover: rgba(20, 30, 70, 0.05); --sky-tile: rgba(20, 30, 70, 0.04); --sky-error: #b3261e;
    --sky-go: #3a55c8; --sky-go-soft: rgba(58, 85, 200, 0.08);
  }
  [data-theme="light"] .lp-start-host--light .lp-start {
    background: #fff; border-color: rgba(20, 30, 70, 0.1); box-shadow: 0 12px 40px rgba(40, 60, 140, 0.1);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  [data-theme="light"] .lp-start-host--light .lp-start:has(.lp-start__idea:focus) { border-color: rgba(58, 85, 200, 0.45); box-shadow: 0 0 0 3px rgba(58, 85, 200, 0.12), 0 12px 40px rgba(40, 60, 140, 0.1); }
  [data-theme="light"] .lp-start-host--light .lp-start__tool { border-color: var(--sky-line); }
  [data-theme="light"] .lp-start-host--light .lp-start__tpl-need { color: #8a6100; }
  [data-theme="light"] .lp-start-host--light .lp-start__chip { background: #fff; border-color: rgba(20, 30, 70, 0.14); color: var(--sky-text); }
  [data-theme="light"] .lp-start-host--light .lp-start__chip:hover { background: #f3f5fb; }
  [data-theme="light"] .lp-start-host--light .lp-start__chip[aria-pressed="true"] { background: var(--sky-btn); border-color: var(--sky-btn); color: var(--sky-btn-text); }
  /* In the dark theme the ways in are a little lighter than the page. */
  [data-theme="dark"] .lp-start-host--light .lp-start__chip:not([aria-pressed="true"]) { background: rgba(255, 255, 255, 0.04); }
}

/* Phones: the same field, the controls on two rows. */
@media (max-width: 639px) {
  .lp-start { margin-top: 24px; border-radius: 20px; }
  .lp-start__body { padding: 16px 16px 4px; }
  /* «Kopier» the width of the field, right under the address. */
  .lp-start__foot { padding: 4px 16px 16px; }
  .lp-start__go { width: 100%; margin-left: 0; min-height: 46px; }
  .lp-start__ready { margin: 0 16px; padding: 14px 0 16px; }
  /* The address: the label on one line, the address on the next, smaller. */
  .lp-start__copytext { font-size: min(13.5px, 3.3vw); line-height: 1.6; }
  .lp-start__copyurl { display: block; white-space: nowrap; }
  .lp-start__help--under { font-size: 13px; }
  /* A phone cannot open the tools' desktop apps. */
  .lp-start__tools { display: none !important; }
  /* The four shortcuts as two even rows. */
  .lp-start__chips { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; margin-top: 12px; }
  .lp-start__chip { justify-content: center; gap: 6px; min-height: 44px; padding: 4px 8px; font-size: 13px; text-align: center; line-height: 1.2; }
  .lp-start__chip .material-symbols-outlined { font-size: 17px; }
  /* Without their icons, so each fits on one line. */
  .lp-start__chips .lp-start__chip { white-space: nowrap; font-size: 13.5px; }
  .lp-start__chips .lp-start__chip .material-symbols-outlined { display: none; }
  .lp-start__repos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* On a phone the cards are small tiles: the line is for screen readers only. */
  .lp-start__repo { justify-content: center; min-height: 52px; padding: 0 10px; font-size: 14px; line-height: 1.2; }
  .lp-start__repo-head { gap: 8px; padding-right: 8px; }
  .lp-start__repo svg { width: 22px; height: 22px; }
  .lp-start__repo-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lp-start__repo-on { top: 8px; right: 8px; }
  .lp-start__body > .lp-start__pane[data-pane="repo"] { margin-bottom: -52px; }
  .lp-start__tpls { grid-template-columns: 1fr; }
}
