/* Matches The Soft Simple OS app and the webinar graphic. Mobile first.
   Every color and font is a variable in :root. Change them there only. */

@font-face {
  font-family: "Merriweather";
  src: url("fonts/merriweather-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Colors */
  --color-teal: #0F4D48;   /* buttons, links */
  --color-wine: #7A1F3D;   /* small labels, tagline, section headings */
  --color-rose: #C45A78;   /* highlights (never behind or as text) */
  --color-blush: #F3D1D5;  /* date band, soft glow behind the photo */
  --color-cream: #FBF6EF;  /* page background */
  --color-gold: #D4B483;   /* thin dividers only */
  --color-sage: #A7B89F;   /* subtle details */
  --color-text: #2F2F2F;   /* headline and body text */

  /* Fonts */
  --font-headline: "Merriweather", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-teal); }

/* Hero band: cream fading into blush, like the graphic */
.hero-band {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-blush) 55%, var(--color-cream) 100%);
}

.site-header {
  padding: 2rem 1.5rem 0;
  text-align: center;
}
.logo { width: 170px; height: auto; }

.hero {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

.hero-text { margin-top: 2.5rem; }

.eyebrow,
label.field-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-wine);
}
.eyebrow { margin: 0 0 0.75rem; }

h1 { margin: 0; font-family: var(--font-headline); }
.title-main {
  display: block;
  font-weight: 700;
  font-size: clamp(2.3rem, 10vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.title-sub {
  display: block;
  font-weight: 400;
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  line-height: 1.3;
  margin-top: 0.75rem;
}

.tagline {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(1.2rem, 4.8vw, 1.6rem);
  line-height: 1.45;
  color: var(--color-wine);
  margin: 1.5rem 0 0;
  max-width: 20ch;
}

.when {
  display: inline-block;
  background: var(--color-blush);
  margin: 2.25rem 0 0;
  padding: 0.85rem 1.5rem;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Main content */
main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.section + .section { margin-top: 3.5rem; }
.section p { margin: 0 0 1.25rem; font-size: 1.05rem; }
.section p:last-child { margin-bottom: 0; }

/* The opening section reads as the lead */
.section:first-child h2 {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  line-height: 1.3;
  color: var(--color-text);
  text-wrap: balance;
}
.section:first-child p:last-child {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-wine);
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-sage);
}

.closing-line {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-wine);
  text-align: center;
  margin: 4rem 0 0;
  text-wrap: balance;
}

/* Form */
.form-card {
  background: #fff;
  border-top: 6px solid var(--color-teal);
  border-radius: 1.5rem;
  padding: 2.25rem 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 1px 2px rgba(122, 31, 61, 0.05), 0 16px 48px rgba(122, 31, 61, 0.08);
}

.field { margin-bottom: 1.5rem; }
.field:last-of-type { margin-bottom: 2rem; }

label.field-label {
  display: block;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.95rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem; /* keeps iOS from zooming */
  color: var(--color-text);
  background: var(--color-cream);
  border: 1px solid var(--color-teal);
  border-radius: 0.75rem;
}
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
.consent input:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--color-rose);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.1rem 0 0;
  accent-color: var(--color-teal);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  background: var(--color-blush);
  border-radius: 0.75rem;
  color: var(--color-wine);
  padding: 0.9rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
}

.button {
  display: block;
  width: 100%;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--color-teal);
  border: 2px solid var(--color-teal);
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.button:hover { box-shadow: 0 0 0 3px var(--color-rose); }
.button:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.button-outline {
  background: transparent;
  color: var(--color-teal);
}

.fine-print {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Confirmation */
#confirmation { outline: none; }
#confirmation .button { margin-top: 1rem; }
.confirm-lead {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.confirm-body { margin: 0; }
.confirm-when {
  background: var(--color-blush);
  margin: 1.75rem 0 2rem;
  padding: 1rem 1.25rem;
  line-height: 1.6;
}
.confirm-when span { display: block; }
.confirm-title { font-weight: 600; }

/* Section headings and numbered lists */
h2 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--color-teal);
  margin: 0 0 1.25rem;
}

.form-heading {
  font-style: normal;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.75rem;
}

.section ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: item;
}
.section li {
  counter-increment: item;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--color-gold);
  font-size: 1.05rem;
}
.section li:last-child { border-bottom: 1px solid var(--color-gold); }
.section li::before {
  content: counter(item);
  flex: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-teal);
}

.assessment-lead { margin: 2rem 0 0; }

/* Larger screens: words on the left, photo on the right, like the graphic */
@media (min-width: 62rem) {
  .hero-band {
    position: relative;
    background: linear-gradient(90deg, var(--color-cream) 0%, var(--color-cream) 35%, var(--color-blush) 62%);
    overflow: hidden;
  }
  .site-header {
    max-width: 76rem;
    margin: 0 auto;
    padding: 2.5rem 3rem 0;
    text-align: left;
    position: relative;
    z-index: 1;
  }
  .logo { width: 190px; }
  .hero {
    max-width: 76rem;
    padding: 3.5rem 3rem 5rem;
    min-height: 36rem;
    display: flex;
    align-items: center;
  }
  .hero-text { margin-top: 0; max-width: 34rem; position: relative; z-index: 1; }
  .hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  }

  main {
    max-width: 76rem;
    padding: 5rem 3rem 7rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
  .signup { position: sticky; top: 2rem; }
  .closing-line { margin-top: 0; text-align: left; }
  .form-card { padding: 3rem; }
}
