/* Sam Abed — Your First Business landing page
   Brand: navy #1B2A33, gold #A6844A, cream #F3EEE4 (matches the guide cover)
*/

:root {
  --navy: #1B2A33;
  --navy-deep: #121C22;
  --gold: #A6844A;
  --gold-dk: #8A6A38;
  --gold-lt: #C4A35A;
  --rule: #C9B48A;
  --cream: #F3EEE4;
  --cream-dk: #E8E0D2;
  --box: #EBE4D6;
  --ink: #1A1814;
  --body: #2C2824;
  --muted: #5C564C;
  --white: #FFFaf4;
  --danger: #8B3A2A;
  --radius: 6px;
  --shadow: 0 18px 40px rgba(18, 28, 34, 0.28);
  --font-serif: "Playfair Display", "Times New Roman", Times, serif;
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 38rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--body);
  background: var(--cream);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gold-dk);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--navy); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.85rem 1.25rem 0.8rem;
  border-bottom: 1px solid rgba(166, 132, 74, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 2.25rem 1.35rem 2.5rem;
}

.hero-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.kicker::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 1px;
  background: var(--gold);
  margin: 0.7rem 0 0;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 7.4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--white);
  margin: 0 0 1rem;
}

.subhead {
  margin: 0 0 1.6rem;
  color: #E8E0D2;
  font-size: 1.0625rem;
  max-width: 34rem;
}

/* ---------- Form ---------- */
.signup {
  display: grid;
  gap: 0.85rem;
  max-width: 26rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.optional {
  font-weight: 400;
  color: var(--rule);
  letter-spacing: 0;
}

.field input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px; /* prevent iOS zoom */
  line-height: 1.3;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(201, 180, 138, 0.45);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}

.field input::placeholder { color: #8A8376; }

.field input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.85rem 1.1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 18px rgba(0, 0, 0, 0.22);
}

.cta:hover,
.cta:focus-visible {
  background: var(--gold-lt);
  color: var(--navy-deep);
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.cta:active { transform: translateY(1px); }

.helper {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--rule);
}

/* ---------- Cover mockup ---------- */
.cover-wrap {
  display: flex;
  justify-content: center;
}

.cover {
  width: min(100%, 18.5rem);
  background: var(--navy);
  border: 6px solid var(--gold);
  box-shadow: var(--shadow), 0 0 0 1px var(--gold-dk);
  transform: rotate(-1.4deg);
}

.cover img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.cover-caption {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--rule);
  font-size: 0.84rem;
  font-style: italic;
  font-family: var(--font-serif);
}

/* ---------- Sections ---------- */
.section {
  padding: 2.35rem 1.35rem;
}

.section-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 1.15rem;
  font-weight: 700;
}

.bullets {
  background: var(--cream);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.bullets li {
  position: relative;
  padding: 1rem 1rem 1rem 2.85rem;
  background: var(--box);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--body);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  border-radius: 50%;
}

.about {
  background: #EDE6D8;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.about p { margin: 0 0 1rem; }
.about p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: var(--rule);
  padding: 2rem 1.35rem 2.4rem;
  text-align: center;
}

.handles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin: 0 0 1.15rem;
}

.handles a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.handles a:hover,
.handles a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

.disclaimer {
  max-width: 38rem;
  margin: 0 auto;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #9A8E72;
}

/* ---------- Thank-you ---------- */
.thanks-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 1.35rem 2.75rem;
  text-align: center;
}

.thanks-hero h1 {
  font-size: clamp(1.85rem, 7vw, 2.8rem);
  margin-bottom: 0.85rem;
}

.thanks-hero .lead {
  margin: 0 auto 1.6rem;
  max-width: 30rem;
  color: #E8E0D2;
}

.thanks-hero .cta { max-width: 22rem; margin: 0 auto; }

.thanks-body {
  padding: 2.25rem 1.35rem 3rem;
}

.thanks-body .section-inner p { margin: 0 0 1rem; }

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  margin-top: 0.5rem;
}

.secondary:hover,
.secondary:focus-visible {
  background: var(--navy);
  color: var(--cream);
}

/* ---------- Desktop ---------- */
@media (min-width: 860px) {
  .hero { padding: 3.5rem 2rem 3.75rem; }

  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 3.5rem;
    align-items: center;
  }

  .cover { width: min(100%, 22rem); }

  .section { padding: 3rem 2rem; }

  .signup { max-width: 24rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cover { transform: none; }
  .cta:active { transform: none; }
}
