/* Offer pages only. Loads after styles.css, which stays an unchanged copy of the
   new-home demo's stylesheet. Same file in demos/offer/ and demos/offer-authors/. */

/* Hero: text messages in the demo's card style */
.hero-text { margin: 18px 0 0; font-size: 16px; color: var(--muted); }
.hero-text a { font-weight: 700; color: var(--ink); display: inline-block; padding: 10px 0; margin: -10px 0; }
.bubbles { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { margin: 0; max-width: 90%; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.35; background: #eef1ec; align-self: flex-start; border-bottom-left-radius: 3px; }
.bubble.out { background: var(--lupine); color: #fff; align-self: flex-end; border-radius: 14px; border-bottom-right-radius: 3px; }
.card.sheet .window-bar b { color: var(--orange-text); }
.card.editor .window-bar b { margin-left: 10px; } /* keeps the title clear of the phone */
.card.editor .bubbles, .card.editor .editor-body { padding-right: 12%; }
.preview-note { margin: 0 0 10px; font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.phone-photo.sky { background: radial-gradient(circle at 78% 26%, #ffe28a 0 11%, transparent 12%), linear-gradient(180deg, #a9dcf0 0 62%, #8fc77e 63% 100%); color: #12332b; }
.phone-photo.coach { background: radial-gradient(circle at 74% 30%, #fff1c2 0 10%, transparent 11%), linear-gradient(180deg, #d7e6df 0 52%, #9dbdaf 53% 74%, #6f9a88 75% 100%); color: #12332b; }
.phone.coach .item span { background: #6f9a88; }
.phone .post.new { background: var(--lime); color: var(--deep); }
.phone .post.new small { color: var(--deep); }

/* How it works: four dated steps (card style from the authors page's ISBN steps) */
.step-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 60px 0 0; counter-reset: s; }
.step-cards li { background: var(--paper); border: 1px solid var(--ink); padding: 28px; counter-increment: s; display: flex; flex-direction: column; }
.step-cards li:nth-child(1) { box-shadow: 10px 10px 0 var(--lupine); }
.step-cards li:nth-child(2) { box-shadow: 10px 10px 0 var(--orange); }
.step-cards li:nth-child(3) { box-shadow: 10px 10px 0 var(--lime); }
.step-cards li:nth-child(4) { box-shadow: 10px 10px 0 var(--ink); }
.step-cards li::before { content: "0" counter(s); font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--orange-text); }
.step-cards .when { order: -1; margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lupine); }
.step-cards h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 12px; }
.step-cards p { margin: 0; color: var(--muted); font-size: 16px; }
.step-cards .step-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }

/* The Build-First Guarantee */
.guarantee { background: var(--lupine); color: #fff; }
.guarantee .eyebrow { color: var(--lime); }
.guarantee .eyebrow::before { background: var(--lime); }
.guarantee h2 em { color: var(--lime); }
.guarantee .section-intro > p:not(.eyebrow) { color: #ded3ea; }
.guarantee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.guarantee-grid article { background: var(--paper); color: var(--ink); padding: 34px; box-shadow: 10px 10px 0 var(--lime); }
.guarantee-grid h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; }
.guarantee-grid p { margin: 0; color: var(--muted); }
.guarantee-grid small { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Three ways to update */
.ways.three { grid-template-columns: repeat(3, 1fr); }
.way.text-way { box-shadow: 10px 10px 0 var(--lime); }
.way.text-way .kicker { color: #3f6e61; }
.text-peek { border-color: var(--line); box-shadow: 8px 9px 0 rgba(24, 55, 47, .08); }
.text-peek .window-bar b { color: var(--ink); }

/* Post by email. On the authors site it leads, across the full width */
.way.email-way { box-shadow: 10px 10px 0 var(--ink); }
.way.email-way .kicker { color: var(--lupine); }
.email-peek { border-color: var(--line); box-shadow: 8px 9px 0 rgba(24, 55, 47, .08); }
.email-peek .window-bar b { color: var(--ink); }
.email-peek .field.long { margin-top: 8px; height: auto; min-height: 52px; }
.email-peek .attached { margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.way.lead { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 56px; align-items: center; padding: 48px; border-width: 2px; }
.way.lead .badge { left: 48px; margin: 0; }
.way.lead .way-text { display: flex; flex-direction: column; }
.way.lead h3 { font-size: clamp(40px, 4.4vw, 56px); }
.way.lead .editor-peek { margin: 0; }

/* Moving: .section-intro's paragraph rule otherwise wins over .proof in styles.css */
.section-intro > p.proof { margin-top: 30px; font-size: 20px; color: var(--ink); max-width: none; }

/* Before and after, with the quote slots left empty */
.ba-copy .ba-quote { grid-column: 1 / -1; }
.ba-copy .ba-facts { margin-top: 0; }

/* Author bonuses */
.bonus-note { background: var(--lime); }
.included-grid .bonus-note p { color: var(--deep); }

/* Pricing */
.plans { background: var(--pink); }
.plans .section-intro > p:not(.eyebrow) { color: #3b544c; }
.plans .section-intro > p.capacity { margin: 18px 0 0; font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); }
.offer.founding { max-width: 760px; margin-top: 44px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 64px; align-items: stretch; }
.plan-grid .price-card { max-width: none; position: relative; display: flex; flex-direction: column; padding: 38px 32px; }
.plan-grid .price-card ul { flex: 1; }
.plan-grid .price-card.featured { outline: 3px solid var(--lupine); box-shadow: 14px 14px 0 var(--lupine); }
.badge { position: absolute; top: -15px; left: 32px; padding: 3px 12px; background: var(--lime); border: 1px solid var(--ink); color: var(--deep); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.plan-for { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.price-card li.plus-head { font-weight: 700; border-bottom: 0; padding-top: 14px; }
.price-card li small { display: inline; margin: 0; font-size: 14px; font-weight: 700; color: var(--lupine); }
.value-line { margin: 56px 0 0; font-size: 18px; color: #3b544c; }
.value-line strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.addon-list b small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }

/* Final call to action */
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 24px; }
.texts-welcome { margin: 12px 0 0; font-size: 17px; }

/* 44px tap targets for links styled in styles.css */
.text-link { display: inline-block; padding: 12px 0 8px; }
.contact-line a { padding: 9px 0; }
.faq summary { padding: 6px 0; }
.ba-copy a { display: inline-block; padding: 9px 0; }
footer a:not(.brand) { display: inline-block; padding: 11px 0; color: #fff; }
.way .best a { display: inline-block; padding: 12px 0; margin: -12px 0; }

@media (max-width: 1239px) {
  .ways.three { grid-template-columns: 1fr; }
  .step-cards { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; gap: 44px; }
  .plan-grid .price-card { max-width: 640px; }
}
@media (max-width: 960px) {
  .guarantee-grid { grid-template-columns: 1fr; }
  .way.lead { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .step-cards { grid-template-columns: 1fr; }
  .step-cards li:nth-child(n) { box-shadow: 6px 6px 0 var(--orange); }
  .guarantee-grid article { padding: 28px 22px; box-shadow: 6px 6px 0 var(--lime); }
  .way.text-way { box-shadow: 6px 6px 0 var(--lime); }
  .way.email-way { box-shadow: 6px 6px 0 var(--ink); }
  .way.lead { padding: 40px 22px 28px; }
  .way.lead .badge { left: 22px; }
  .plan-grid .price-card { padding: 34px 22px; }
  .badge { left: 22px; }
  .offer.founding { transform: none; }
  .phone .post { padding: 8px; }
  /* Keep the message and preview cards readable beside the phone */
  .hero-visual .sheet { width: 84%; top: 24px; }
  .hero-visual .phone { width: 47%; right: 0; top: 176px; height: 372px; }
  .hero-visual .editor { width: 53%; left: 0; bottom: 34px; }
  .card.editor .bubbles, .card.editor .editor-body { padding: 10px; }
  .card.editor .bubble { max-width: 100%; }
  .preview-note { font-size: 16px; }
}

/* Meet Amy */
.about-amy { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 6vw; align-items: center; background: var(--cream); }
.about-amy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; margin: 0 0 20px; }
.amy-lede { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.35; margin: 0 0 18px; max-width: 34ch; }
.amy-photo { margin: 0; }
.amy-photo img, .todo-photo { display: block; width: 100%; max-width: 440px; aspect-ratio: 9 / 11; object-fit: cover; border: 6px solid var(--ink); box-shadow: 12px 12px 0 var(--lime); transform: rotate(-2deg); }
.todo-photo { display: grid; place-items: center; background: var(--lupine-soft); color: var(--lupine); font-weight: 700; text-align: center; padding: 20px; }
.todo { background: #fff4c2; border-left: 4px solid var(--orange-text); padding: 10px 14px; max-width: 60ch; }
@media (max-width: 760px) {
  .about-amy { grid-template-columns: 1fr; }
  .amy-photo img, .todo-photo { max-width: 260px; }
}

/* "Send one link" form */
.link-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; max-width: 760px; margin: 0 auto; text-align: left; }
.link-form label { display: grid; gap: 6px; font-weight: 700; font-size: 16px; }
.link-form .wide { grid-column: 1 / -1; }
.link-form .optional { font-weight: 400; }
.link-form input, .link-form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; padding: 12px 14px; min-height: 50px; width: 100%; }
.link-form input::placeholder { color: #6b7d77; }
.link-form input:focus-visible, .link-form textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.link-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-end .button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form-end .button:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-weight: 700; }
.form-status.is-error { background: var(--paper); padding: 6px 10px; }
.or-line { margin: 34px auto 0; max-width: 760px; font-size: 17px; }
.or-line a { font-weight: 700; padding: 10px 0; }
@media (max-width: 600px) { .link-form { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }
.about-amy p:not(.eyebrow):not(.amy-lede):not(.todo):not(.amy-cta) { max-width: 60ch; color: var(--muted); font-size: 18px; }
.about-amy.no-photo { grid-template-columns: minmax(0, 860px); }
