/* planinblue — landing pages (hero, lead form, before/after drawing) */

/* ---------- Layout ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.sheet {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: calc(var(--frame) + 34px) calc(var(--frame) + 38px) calc(var(--frame) + 44px);
  display: flex;
  flex-direction: column;
}

.topbar { display: flex; justify-content: flex-end; }

.content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 32px;
  padding-top: 8px;
}

/* ---------- Copy ---------- */
h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(34px, 3.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
/* Headlines that must stay on two lines shrink with their column (line 1 is ~9.9em). */
.copy { container-type: inline-size; }
h1.fit { font-size: min(clamp(34px, 3.5vw, 54px), 9.6cqi); }
h1.fit span { white-space: nowrap; }
h1 em {
  font-style: italic;
  color: var(--yellow);
  font-weight: 600;
}

.lede {
  margin: 18px 0 0;
  max-width: 34ch;
  text-wrap: pretty;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.38;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.accent {
  margin: 10px 0 0;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: -0.01em;
}

/* ---------- Form ---------- */
.form-wrap { margin-top: 34px; max-width: 540px; }
.form-wrap .dim { margin-bottom: 10px; }

form {
  position: relative;
  border: 1.3px solid rgba(255, 255, 255, 0.6);
  padding: 22px 22px 20px;
  background: rgba(10, 34, 110, 0.18);
  backdrop-filter: blur(1px);
}
/* corner registration ticks */
form::before, form::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
form::before { bottom: -7px; right: -7px; border-bottom: 1.3px solid var(--line); border-right: 1.3px solid var(--line); transform: translate(4px, 4px); }
form::after { bottom: -7px; left: -7px; border-bottom: 1.3px solid var(--line); border-left: 1.3px solid var(--line); transform: translate(-4px, 4px); }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.note {
  font-family: var(--hand);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- Before / After illustration ---------- */
.drawing {
  position: relative;
  width: 100%;
  max-width: 800px;
  justify-self: end;
  margin-right: -28px;
}
.drawing svg { display: block; width: 100%; height: auto; overflow: visible; }

.sk { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tw { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ho { fill: none; stroke: none; }
.dash { fill: none; stroke: #fff; stroke-width: 1.2; stroke-dasharray: 5 5; stroke-linecap: round; opacity: 0.85; }
.ba text { font-family: var(--hand); fill: #fff; text-anchor: middle; }
.ba .ttl { font-size: 33px; letter-spacing: 4px; }
.ba .lbl { font-size: 17px; letter-spacing: 0.8px; }
.ba .lbl.small { font-size: 14px; opacity: 0.8; }
.ba .ver { font-size: 20px; letter-spacing: 0.5px; }
.ba .ver--ok { fill: var(--yellow); }
.ba .cap { font-size: 16.5px; letter-spacing: 1px; }
.only-narrow { display: none; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(10px); animation: rise 0.7s ease forwards; }
  .rise.r2 { animation-delay: 0.1s; }
  .rise.r3 { animation-delay: 0.2s; }
  .rise.r4 { animation-delay: 0.32s; }

  .ba .pop { opacity: 0; animation: fade 0.6s ease forwards; animation-delay: var(--d, 0s); }
  .ba .grow { transform-box: fill-box; transform-origin: center; animation-name: grow; animation-duration: 0.7s; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
  .ba .heads { opacity: 0; animation: fade 0.35s ease forwards; animation-delay: var(--d, 0s); }
  .ba .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.55, .1, .35, 1) forwards; animation-delay: var(--d, 0s); }
  .ba .draw.quick { animation-duration: 0.5s; }
  .ba .flow { animation: flow 0.9s linear infinite; }
  .ba .flicker { animation: flicker 1.9s steps(1) infinite; }
  .ba .ring { transform-box: fill-box; transform-origin: 50% 60%; animation: ring 2.4s ease-in-out infinite 1s; }
  .ba .drip { animation: drip 2.2s ease-in infinite 1s both; }
  .ba .lost { transform-box: fill-box; transform-origin: center; animation: lost 4s ease-in-out infinite both; animation-delay: var(--d, 0s); }
  .ba .play { animation: play 3.6s linear infinite; }
  .ba .steam { animation: steam 2.6s ease-out infinite both; animation-delay: var(--d, 0s); }

  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes fade { to { opacity: 1; } }
  @keyframes grow { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes flow { to { stroke-dashoffset: -10; } }
  @keyframes flicker { 0% { opacity: 1; } 42% { opacity: .2; } 48% { opacity: 1; } 54% { opacity: .35; } 60% { opacity: 1; } }
  @keyframes ring { 0%, 40%, 100% { transform: none; } 4% { transform: rotate(9deg); } 8% { transform: rotate(-9deg); } 12% { transform: rotate(8deg); } 16% { transform: rotate(-8deg); } 20% { transform: rotate(6deg); } 24% { transform: rotate(-6deg); } 28% { transform: rotate(3deg); } 32% { transform: rotate(-2deg); } }
  @keyframes drip { 0% { opacity: 0; transform: translateY(-2px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
  @keyframes lost { 0% { opacity: 0; transform: none; } 12% { opacity: 1; } 70% { opacity: .85; } 100% { opacity: 0; transform: translate(138px, 26px) rotate(28deg); } }
  @keyframes play { from { transform: none; } to { transform: translateX(34px); } }
  @keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-9px); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .content { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .drawing { justify-self: center; max-width: 680px; margin: 16px 0 0; }
  .copy { max-width: 620px; }
}

@media (max-width: 640px) {
  .sheet { padding: calc(var(--frame) + 26px) calc(var(--frame) + 18px) calc(var(--frame) + 26px); }
  .fields { grid-template-columns: 1fr; }
  form { padding: 18px 16px 16px; }
  .form-wrap { margin-top: 26px; }
  .actions { gap: 12px; }
  .btn { width: 100%; justify-content: center; }
  .drawing { max-width: 420px; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  #after { transform: translate(-380px, 650px); }
}

.honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
/* consent: a small drafted checkbox, label aligned to it */
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font: 400 14px/1.4 var(--hand); letter-spacing: 0.04em; color: var(--ink-soft); cursor: pointer; }
.consent input[type="checkbox"] {
  flex: none;
  width: 18px; height: 18px;
  margin: 1px 0 0; padding: 0;
  background: rgba(255, 255, 255, 0.06) center / 12px 12px no-repeat;
  border: 1.3px solid var(--line-soft);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.consent input[type="checkbox"]:hover { border-color: #fff; }
.consent input[type="checkbox"]:focus-visible { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(246, 201, 69, 0.25); }
.consent input[type="checkbox"]:checked {
  background-color: var(--yellow);
  border-color: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.3' fill='none' stroke='%2313348f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.consent a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, 0.7); white-space: nowrap; }
.consent a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
#form-status { margin: 10px 0 0; font: 400 14px/1.4 var(--hand); letter-spacing: 0.04em; color: var(--yellow); }
#form-status:empty { display: none; }
button:disabled { opacity:.6; cursor:wait; }
