/* secure.scoreify.io styles. Layout and tokens mirror the Scoreify onboarding flow
   (DESIGN.md / globals.css in the app): 60% white form, 40% Vault navy panel.
   Fonts and art are self-hosted so the page makes no third-party requests besides the form. */

@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sintony";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/sintony-400.woff2") format("woff2");
}
@font-face {
  font-family: "Sintony";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/sintony-700.woff2") format("woff2");
}

:root {
  --canvas: #ffffff;
  --ink: #000000;
  --text: #383c51;
  --text-muted: #6a6f85;
  --primary: #6460d8;
  --primary-hover: #5753c4;
  --primary-pressed: #4b47b0;
  --vault: #060b25;
  --success: #027a48;
  --success-soft: #ecfdf3;
  --info-soft: #f2f3f6;
  --hairline: rgba(6, 11, 37, 0.09);
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.7);
  --border-on-dark: rgba(255, 255, 255, 0.16);
  --inset: clamp(20px, 6vw, 80px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--canvas);
}

body {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--primary-pressed);
}

/* -- Split shell --------------------------------------------------------- */

.shell {
  display: flex;
  min-height: 100dvh;
}

.main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
}

.main-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px var(--inset) 28px;
}

.top {
  display: flex;
  align-items: center;
  height: 24px;
}

.logo {
  display: block;
  height: 24px;
  width: auto;
}

.content {
  width: 100%;
  max-width: 34rem;
  padding-top: clamp(1.75rem, 6dvh, 4rem);
}

h1 {
  margin: 0;
  font-family: "Sintony", Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.lead {
  margin: 6px 0 0;
  max-width: 36rem;
  color: var(--text-muted);
}

.panel {
  display: none;
}

@media (min-width: 900px) {
  .main {
    width: 60%;
  }
  .main-inner {
    padding-top: 24px;
    padding-bottom: 32px;
  }
  h1 {
    font-size: 27px;
  }
  .panel {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    width: 40%;
    height: 100dvh;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--vault);
    color: var(--on-dark);
  }
  /* The panel says the same thing on wide screens. */
  .note {
    display: none;
  }
}

/* -- Form frame ---------------------------------------------------------- */

.frame {
  position: relative;
  /* The form's own padding leaves room for focus rings; pull it back so fields line up with the heading. */
  margin: 22px -4px 0;
}

.frame iframe {
  position: relative;
  display: block;
  width: 100%;
  /* EmailMeForm resizes this to fit once live; this height only applies until then (and on localhost). */
  height: 1240px;
  border: 0;
  background: transparent;
}

.frame-loading {
  position: absolute;
  inset: 12px 4px auto;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.form-loaded .frame-loading {
  display: none;
}

.notice {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--info-soft);
  color: var(--text);
}

.note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.fallback {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* -- Footer -------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: auto;
  padding-top: 32px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

/* -- Vault panel: flat navy, one statement and ticked lines (the app's proof panel shape) -- */

.panel-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8dvh, 5rem) clamp(24px, 5vw, 72px);
}

.panel-copy > * {
  max-width: 22rem;
}

.panel h2 {
  margin: 0;
  font-family: "Sintony", Georgia, serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--on-dark);
  text-wrap: balance;
}

.points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-dark);
}

.tick svg {
  width: 10px;
  height: 10px;
}

.points p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--on-dark-muted);
}

.points strong {
  font-weight: 500;
  color: var(--on-dark);
}

.panel-note {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-on-dark);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* -- Submitted page ------------------------------------------------------ */

.done {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
}

.done + h1 + .lead {
  margin-bottom: 8px;
}
