/* =================================================
   SeaCareer Academy — Landing Page Styles
   =================================================
   Color palette (defined once as CSS variables so the
   whole page can be re-themed by changing a few lines):
   - Deep navy   = primary brand color, feels professional/trustworthy
   - Warm orange = accent color, used sparingly for the CTA so it stands out
   ================================================= */

:root {
  --navy-900: #0a1a2f;   /* darkest navy — page background */
  --navy-800: #0f2540;   /* slightly lighter navy — header/footer */
  --navy-700: #16324f;   /* used for subtle borders/dividers */
  --orange-500: #f2792e; /* accent — buttons, highlights */
  --orange-600: #d9631f; /* darker orange — button hover state */
  --white: #ffffff;
  --off-white: #e9edf3;  /* body text on navy — softer than pure white */
  --muted: #9fb0c3;      /* secondary/microcopy text */

  --max-width: 640px;    /* keeps text lines readable, not stretched edge-to-edge */
  --radius: 8px;
}

/* ---- Reset / base setup ----
   A minimal reset so different browsers render consistently. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Smooth scaling of rem-based sizes; 100% = respect user's browser settings */
  font-size: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* A very subtle radial gradient (darker at the edges) gives the navy
     background a bit of depth instead of sitting flat like a single
     color fill — think "deep water" rather than "flat paint". */
  background-color: var(--navy-900);
  background-image: radial-gradient(ellipse at 50% -10%, var(--navy-800) 0%, var(--navy-900) 60%);
  color: var(--off-white);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Centers content and caps its width on large screens */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility class: visually hides an element but keeps it readable
   by screen readers (used for the email <label>) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* =================================================
   HEADER
   ================================================= */
.site-header {
  border-bottom: 1px solid var(--navy-700);
  padding: 14px 0; /* kept tight so the header doesn't eat into the fold */
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 26px;
  height: 26px;
  color: var(--orange-500);
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* =================================================
   HERO SECTION
   ================================================= */
.hero {
  flex: 1; /* pushes footer to the bottom even on short pages */
  /* Kept small on purpose — everything from here down to the form
     should fit on a first screen without scrolling. */
  padding: 28px 0 0;
  position: relative;
}

.hero-inner {
  text-align: center;
  padding-bottom: 56px;
}

/* ---- Emotional hook ----
   Sits above everything else. Styled like a quiet aside (italic,
   muted, left border) rather than shouted like the headline — it
   should feel like it's naming something true, not selling. */
.hook {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  text-align: left;
  max-width: 460px;
  margin: 0 auto 16px;
  padding-left: 14px;
  border-left: 2px solid var(--orange-500);
}

/* Small uppercase tag above the headline — signals "this is a free
   guide" before the reader even reaches the headline text. */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-500);
  background-color: rgba(242, 121, 46, 0.12);
  border: 1px solid rgba(242, 121, 46, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.headline {
  /* Slightly smaller than before so headline + subheadline + form
     all fit comfortably above the fold, especially on short phone
     screens. The 640px breakpoint below still steps it up on desktop. */
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 12px;
  /* Lets the browser choose better line-break points so the headline
     doesn't end with one lonely word on its own line. */
  text-wrap: balance;
}

.subheadline {
  font-size: 1.05rem;
  color: var(--off-white);
  margin-bottom: 20px;
  text-wrap: balance;
}

/* ---- Trust strip ----
   A compact, plain-spoken credibility line: who wrote this and why
   they're worth listening to on the subject of scams. Deliberately
   understated — a nervous reader should feel reassured, not pitched. */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 480px;
  /* Larger top margin creates a clear break from the form above —
     this is now "supporting detail for scrollers", not part of the
     first screen, so it shouldn't feel glued to the microcopy. */
  margin: 40px auto 36px;
  padding: 14px 16px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
}

/* Circular "initials" badge stands in for a headshot — keeps the
   trust signal personal without using a stock photo. */
.trust-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--navy-700);
  color: var(--orange-500);
  font-size: 0.85rem;
  font-weight: 700;
}

.trust-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.trust-text strong {
  color: var(--off-white);
}

/* ---- "What you'll learn" block ----
   A short scannable list so the guide's value can be read in a
   glance instead of buried in prose. */
.learn-block {
  max-width: 480px;
  margin: 0 auto 36px;
  text-align: left;
}

/* ---- Guide cover preview ----
   Small, centered booklet mockup: rounded corners + border + soft
   shadow make a flat PNG read as a physical cover rather than a
   random image dropped on the page. */
.guide-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.guide-preview img {
  width: 100%;
  max-width: 160px; /* modest size — supports the page, doesn't dominate it */
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--navy-700);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.guide-preview figcaption {
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.learn-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 14px;
}

.learn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.learn-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--off-white);
  line-height: 1.5;
}

/* Orange checkmark drawn with CSS content instead of an icon image */
.learn-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange-500);
  font-weight: 700;
}

/* ---- Email capture form ---- */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.email-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--navy-900);
  background-color: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
}

.email-input:focus {
  outline: none;
  border-color: var(--orange-500);
}

.cta-button {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background-color: var(--orange-500);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cta-button:hover {
  background-color: var(--orange-600);
}

.cta-button:active {
  transform: scale(0.98);
}

/* Keyboard users need a visible focus outline on both the input and button */
.email-input:focus-visible,
.cta-button:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

/* Respect users who've asked their OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
  .cta-button {
    transition: none;
  }
}

.microcopy {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Form submission feedback ----
   Shared base styling for both the success and error states; the two
   modifier classes below only change color, so the message always
   sits in the same spot the form occupied. */
.form-message {
  max-width: 420px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-message--success {
  color: var(--off-white);
  background-color: rgba(242, 121, 46, 0.12);
  border: 1px solid rgba(242, 121, 46, 0.35);
}

.form-message--error {
  color: var(--off-white);
  background-color: rgba(217, 99, 47, 0.1);
  border: 1px solid rgba(217, 99, 47, 0.4);
}

/* While the button says "Sending…" it's disabled — dim it slightly
   so that's visible at a glance, not just implied by the text. */
.cta-button:disabled {
  opacity: 0.7;
  cursor: default;
}

/* ---- On wider screens, put the email field and button side by side ---- */
@media (min-width: 480px) {
  .signup-form {
    flex-direction: row;
  }

  .email-input {
    flex: 1;
  }

  .cta-button {
    width: auto;
    white-space: nowrap;
  }
}

/* ---- Slightly larger type on bigger screens ----
   Phones get the compact size above so more fits before the fold;
   desktops have the vertical room to go bigger. */
@media (min-width: 640px) {
  .headline {
    font-size: 2.35rem;
  }

  .hero {
    padding-top: 40px;
  }
}

/* Thin wave shape sitting at the bottom of the hero, colored to match
   the footer's border so it reads as a horizon line, not a hard edge. */
.horizon {
  display: block;
  width: 100%;
  height: 40px;
  color: var(--navy-700);
}

/* =================================================
   FOOTER
   ================================================= */
.site-footer {
  padding: 20px 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--muted);
}
