/* planinblue — shared blueprint foundation (landing + blueprint agent) */

@view-transition { navigation: auto; }

:root {
  --blue: #1c4bbd;
  --blue-light: #2657cc;
  --blue-deep: #13399d;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.82);
  --ink-mute: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.9);
  --line-soft: rgba(255, 255, 255, 0.45);
  --panel: rgba(10, 34, 110, 0.18);
  --grid-minor: rgba(255, 255, 255, 0.075);
  --grid-major: rgba(255, 255, 255, 0.15);
  --yellow: #f6c945;
  --yellow-hover: #ffd65e;
  --btn-ink: #13348f;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Architects Daughter", "Comic Sans MS", cursive;
  --frame: 30px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--blue);
  background-image:
    radial-gradient(ellipse 80% 70% at 45% 42%, rgba(255,255,255,0.07), transparent 70%),
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 55%, rgba(8, 28, 90, 0.45) 100%),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: auto, auto, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center, center, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

/* ---------- Drafting frame (dimension lines around the sheet) ---------- */
.frame { position: absolute; pointer-events: none; z-index: 1; overflow: visible; }
.frame line { stroke: var(--line); stroke-width: 1.3; }
.frame--top, .frame--bottom { left: calc(var(--frame) + 12px); width: calc(100% - 2 * var(--frame) - 24px); height: 12px; }
.frame--top { top: calc(var(--frame) - 4px); }
.frame--bottom { bottom: calc(var(--frame) - 4px); }
.frame--left, .frame--right { top: calc(var(--frame) - 14px); height: calc(100% - 2 * var(--frame) + 28px); width: 12px; }
.frame--left { left: calc(var(--frame) - 6px); }
.frame--right { right: calc(var(--frame) - 6px); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.logo__word {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo__word .dot { position: relative; }
.logo__word .dot::after {
  content: "";
  position: absolute;
  left: calc(50% + 0.01em); /* offsets the -0.02em letter-spacing */
  top: 0.24em;
  width: 0.2em;
  height: 0.2em;
  transform: translateX(-50%);
  background: var(--yellow);
  border-radius: 50%;
}

/* ---------- Dimension line (|<—— label ——>|) ---------- */
.dim {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 16px;
  border-left: 1.3px solid var(--line);
  border-right: 1.3px solid var(--line);
  font-family: var(--hand);
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.dim svg { flex: 1; width: 0; min-width: 0; height: 10px; overflow: visible; }
.dim line { stroke: var(--line); stroke-width: 1.2; }

/* ---------- Form controls ---------- */
label {
  font-family: var(--hand);
  font-size: 14.5px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

input, select, textarea {
  width: 100%;
  font: 400 15px/1.3 var(--sans);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1.2px solid var(--line-soft);
  border-radius: 2px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.7); }
input:focus, select:focus, textarea:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(246, 201, 69, 0.22);
}
select {
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select:invalid { color: rgba(255, 255, 255, 0.45); }
option { color: #0f2a74; background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  font: 600 15.5px/1 var(--sans);
  letter-spacing: -0.005em;
  color: var(--btn-ink);
  background: var(--yellow);
  border: 0;
  border-radius: 2px;
  padding: 15px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(8, 26, 84, 0.45);
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { background: var(--yellow-hover); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(8, 26, 84, 0.45); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(8, 26, 84, 0.45); }
.btn:focus-visible, .btn-ghost:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn svg { transition: transform 0.15s; }
.btn:hover svg.nudge { transform: translateX(3px); }

.btn-ghost {
  font: 500 14.5px/1 var(--sans);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1.2px solid var(--line-soft);
  border-radius: 2px;
  padding: 13px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.09); }

kbd {
  font: 500 11.5px/1 var(--sans);
  padding: 3px 6px 2px;
  border: 1px solid var(--line-soft);
  border-bottom-width: 2px;
  border-radius: 3px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.05);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  :root { --frame: 14px; }
  .logo__word { font-size: 20px; }
}
