/* =============================================================
   ARK LABS — /start/ (signup + login)
   Split-screen: left form panel, right product preview panel.
   Matches ARK design tokens from base.css. Replaces the old
   ark.shop centered-card login. After completing sign-in the
   user lands on the ark.shop application.
   ============================================================= */

/* ---- Shell ---- */
.start-shell {
  position: relative;
  min-height: calc(100vh - 68px); /* minus sticky nav */
  background: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Coral signature bar at the very bottom of the shell */
.start-shell::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--coral);
  z-index: 5;
}

/* ========= LEFT: FORM PANEL ========= */
.start-form-panel {
  padding: 72px 64px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  margin-left: auto;
  width: 100%;
}

.start-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74em; font-weight: 700; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 18px;
}
.start-eyebrow .bar { width: 22px; height: 2px; background: var(--cyan); border-radius: 1px; }

.start-title {
  font-size: 2.35em; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.8px; color: var(--navy); margin-bottom: 14px;
}
.start-title .accent { color: var(--cyan); }

.start-sub {
  font-size: 1.02em; color: var(--steel); line-height: 1.65;
  margin-bottom: 28px; max-width: 480px;
}

/* Free-credits callout row (the headline conversion element) */
.start-perks {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
}
.start-perk {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--green-light);
  color: #0B6B52;
  border-radius: 999px;
  font-size: 0.82em; font-weight: 600;
}
.start-perk .tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 10px; font-weight: 800;
}
.start-perk.neutral { background: var(--light-blue); color: var(--navy); }
.start-perk.neutral .tick { background: var(--cyan); }

/* ---- Auth card ---- */
.start-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 12px 40px rgba(12,35,64,0.06);
}

.start-card-title {
  font-size: 1.05em; font-weight: 700; color: var(--navy);
  margin-bottom: 4px;
}
.start-card-hint {
  font-size: 0.85em; color: var(--steel); margin-bottom: 20px;
}

/* Google button — dark pill */
.btn-google {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 18px;
  background: #0E1116; color: #fff;
  border: 1px solid #0E1116;
  border-radius: 10px;
  font-size: 0.95em; font-weight: 600;
  cursor: pointer; transition: all 0.18s ease;
  text-decoration: none;
}
.btn-google:hover {
  background: #000; transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.btn-google .g-ico {
  width: 20px; height: 20px; display: inline-block; flex-shrink: 0;
  background: #fff; border-radius: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/><path fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/><path fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/><path fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/></svg>");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Divider "or" */
.start-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--steel); font-size: 0.78em; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.start-divider::before,
.start-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* Email form */
.start-field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 12px;
}
.start-field label {
  font-size: 0.82em; font-weight: 600; color: var(--navy);
}
.start-field input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit; font-size: 0.95em;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.start-field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,174,232,0.12);
}
.start-field input::placeholder { color: #98A8BA; }

.btn-email {
  width: 100%;
  padding: 13px 18px;
  background: var(--cyan); color: #fff;
  border: none; border-radius: 10px;
  font-size: 0.95em; font-weight: 700;
  cursor: pointer; transition: all 0.18s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-email:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,174,232,0.28);
}

/* Terms + log-in footer in card */
.start-legal {
  font-size: 0.78em; color: var(--steel); line-height: 1.55;
  margin-top: 16px;
}
.start-legal a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.start-legal a:hover { color: var(--cyan); }

.start-alt {
  margin-top: 22px;
  text-align: center;
  font-size: 0.88em; color: var(--steel);
}
.start-alt a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.start-alt a:hover { text-decoration: underline; }

/* ========= RIGHT: PRODUCT PREVIEW PANEL ========= */
.start-preview {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% 0%, rgba(0,174,232,0.25), transparent 60%),
    radial-gradient(900px 500px at 15% 100%, rgba(0,174,232,0.12), transparent 55%),
    linear-gradient(160deg, #0C2340 0%, #08182B 70%, #050F1D 100%);
  color: #E8EEF5;
  padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}

/* Subtle grid backdrop */
.start-preview::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.start-preview-inner {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}

.preview-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(0,174,232,0.14);
  color: #7FD6F5;
  border: 1px solid rgba(0,174,232,0.32);
  border-radius: 999px;
  font-size: 0.74em; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.4px;
  margin-bottom: 18px;
}
.preview-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,174,232,0.18);
}

.preview-kicker {
  font-size: 1.6em; font-weight: 800; line-height: 1.2;
  color: #fff; letter-spacing: -0.4px; margin-bottom: 10px;
}
.preview-kicker .accent { color: var(--cyan); }

.preview-lede {
  font-size: 0.95em; color: #A6B5C7; line-height: 1.6;
  margin-bottom: 28px;
}

/* Mock portal card */
.portal-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

/* Window chrome */
.portal-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72em; color: #6F8399;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
.portal-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: #334558; }
.portal-chrome .url {
  margin-left: 14px; padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* Portal body */
.portal-body { padding: 20px 20px 18px; }

.portal-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.portal-greet {
  font-size: 0.95em; color: #fff; font-weight: 700;
}
.portal-greet .small { display: block; font-size: 0.68em; color: #6F8399; font-weight: 500; margin-top: 2px; letter-spacing: 0.2px; }
.portal-credits {
  text-align: right;
}
.portal-credits .num {
  font-size: 1.4em; font-weight: 800; color: var(--cyan);
  line-height: 1;
}
.portal-credits .lbl {
  font-size: 0.66em; color: #6F8399; text-transform: uppercase; letter-spacing: 1.4px;
  margin-top: 4px;
}

/* API key box */
.portal-key {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(0,174,232,0.08);
  border: 1px dashed rgba(0,174,232,0.35);
  border-radius: 10px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.78em; color: #BFE8F8;
  margin-bottom: 16px;
  overflow: hidden;
}
.portal-key .tag {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.72em; font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase; letter-spacing: 1.2px;
}
.portal-key .mono {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Code block */
.portal-code {
  background: #050F1D;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.78em; line-height: 1.7;
  color: #D7E1EE;
  overflow-x: auto;
}
.portal-code .c-com { color: #5A7184; font-style: italic; }
.portal-code .c-str { color: #7FD6F5; }
.portal-code .c-key { color: #FFB38A; }
.portal-code .c-fn  { color: var(--cyan); }
.portal-code .c-mut { color: #E8807A; }

/* Trust strip below portal */
.preview-trust {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.preview-trust-item {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.preview-trust-item .t {
  display: block; font-size: 0.82em; font-weight: 700; color: #fff;
}
.preview-trust-item .s {
  display: block; font-size: 0.68em; color: #7A8CA1; margin-top: 3px;
  letter-spacing: 0.3px;
}

/* Quote */
.preview-quote {
  margin-top: 28px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  font-size: 0.88em; color: #CFD8E3; line-height: 1.55;
  font-style: italic;
}
.preview-quote cite {
  display: block; margin-top: 6px;
  font-size: 0.78em; color: #7A8CA1;
  font-style: normal; font-weight: 600; letter-spacing: 0.2px;
}

/* ========= Responsive ========= */
@media (max-width: 1024px) {
  .start-shell { grid-template-columns: 1fr; }
  .start-form-panel {
    order: 2;
    padding: 56px 24px 72px;
    margin: 0 auto;
    max-width: 560px;
  }
  .start-preview {
    order: 1;
    padding: 56px 24px 64px;
  }
  .preview-trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .start-title { font-size: 1.9em; }
  .start-card { padding: 22px 20px 20px; }
  .preview-kicker { font-size: 1.3em; }
  .portal-code { font-size: 0.72em; }
}
