/* AFHultin & Co — the service pages (websites, automation, about) and the newer home-page sections.
   Shared tokens, type, buttons, menu and footer are in base.css. Nothing here restyles the home page's
   own classes in styles.css or the plans page's in social.css. */

/* the space above a section and under its heading is set once, in base.css */
.more { display: inline-flex; align-items: center; gap: .5ch; color: var(--acc-text); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- page hero ---------- */
.phero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center;
  padding-top: 52px;
}
.phero.solo { grid-template-columns: minmax(0, 1fr); }
.phero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.phero h1 em { font-style: normal; color: var(--acc-text); display: block; }
.phero .lede { margin-top: 20px; max-width: 46ch; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--text-2); }
.phero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.terms-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px; padding: 0; list-style: none; }
.terms-line li { font-size: 15px; color: var(--text-2); }
.terms-line b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- plain facts in ruled columns (no boxes: these aren't things you click) ---------- */
/* ---------- the four sample sites, as pictures that open the real thing ---------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; list-style: none; padding: 0; }
.shot { display: block; text-decoration: none; }
.shot img {
  width: 100%; border-radius: var(--r); border: var(--edge); box-shadow: var(--lift);
  transition: transform .3s var(--out), box-shadow .3s var(--out);
}
.shot:hover img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10, 15, 60, .06), 0 30px 54px -20px rgba(10, 15, 60, .4); }
.shot span { display: block; margin-top: 14px; font: 800 20px/1.1 var(--display); letter-spacing: -.02em; }
.shot span::after { content: "Open the sample"; margin-left: 12px; font: 600 15px/1 var(--body); letter-spacing: 0; color: var(--acc-text); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; }
.facts li { padding: 22px 0 26px; border-top: 1px solid var(--line-2); }
.facts h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.15; }
.facts p { margin-top: 8px; font-size: 15.5px; color: var(--text-2); line-height: 1.55; }
.facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- a real sequence: numbered steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); list-style: none; padding: 0; counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li {
  counter-increment: step; position: relative;
  padding: 22px 22px 24px; border-radius: var(--r);
  background: var(--surface); border: var(--edge); box-shadow: var(--lift);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 16px;
  background: var(--acc-soft); color: var(--acc-text);
  font-family: var(--display); font-weight: 800; font-size: 17px;
}
.steps h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.15; }
.steps p { margin-top: 8px; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.steps-note { margin-top: 18px; font-size: 15px; color: var(--text-2); max-width: 70ch; }
.steps-note b { color: var(--text); }

/* ---------- price rows ---------- */
.price-rows { display: grid; gap: 12px; list-style: none; padding: 0; }
.price-row {
  display: grid; grid-template-columns: 230px minmax(0, 1fr) 200px; gap: 8px 28px; align-items: center;
  padding: 22px 26px; border-radius: var(--r);
  background: var(--surface); border: var(--edge); box-shadow: var(--lift);
}
.price-row.lead { border-color: var(--acc); background: var(--surface); }
.price-row h3 { font-size: 23px; letter-spacing: -.025em; line-height: 1.1; }
.price-row p { font-size: 15.5px; color: var(--text-2); line-height: 1.5; }
.price-row .amt { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; color: var(--acc-text); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.price-row .amt small { font-family: var(--body); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--text-2); margin-left: 3px; }
.price-row .amt span { display: block; font-family: var(--body); font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-top: 4px; }
html[data-prices="off"] .price-row .amt, html[data-prices="off"] .terms-line, html[data-prices="off"] .lane-price, html[data-prices="off"] .priced { display: none; }

/* ---------- questions ---------- */
.faq { border-top: 1px solid var(--line-2); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 48px 20px 0;
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--text);
  transform: translateY(-50%); transition: transform .3s var(--ease), background-color .2s var(--ease);
}
.faq summary::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.faq details[open] summary::before, .faq details[open] summary::after { background: var(--acc-text); }
.faq .ans { padding: 0 48px 22px 0; color: var(--text-2); max-width: 70ch; }
.faq .ans p + p { margin-top: 10px; }
.faq .ans a { color: var(--acc-text); }

/* ---------- closing card ---------- */
.cta-card {
  position: relative; overflow: hidden;
  padding: 44px; border-radius: var(--r-lg);
}
.cta-card h2 { font-size: clamp(30px, 4.2vw, 54px); max-width: 24ch; }
.cta-card h2 em { font-style: normal; display: block; }
.cta-card p { margin-top: 16px; max-width: 48ch; font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- home: who is behind it ---------- */
.about-strip {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start;
  padding-top: 30px; border-top: 1px solid var(--line-2);
}
.about-strip h2 { font-size: clamp(34px, 4.2vw, 50px); }
.about-strip p { color: var(--text-2); font-size: 18px; max-width: 56ch; }
.about-strip p + p { margin-top: 14px; }
.about-strip .more { margin-top: 20px; }

/* ---------- about: the person ---------- */
.person { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.person h2 { font-size: clamp(34px, 4.2vw, 50px); }
.person .role { margin-top: 8px; color: var(--muted); font-size: 16px; }
.person-facts { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.person-facts li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 16.5px; }
.person-facts span { color: var(--muted); }

/* ---------- lists of what isn't included ---------- */
.plain-list { columns: 2; column-gap: 40px; padding: 0; list-style: none; max-width: 860px; }
.plain-list li { break-inside: avoid; position: relative; padding: 0 0 12px 20px; color: var(--text-2); font-size: 16px; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 1.5px; background: var(--muted); }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
  .phero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { gap: 24px 18px; }
  .steps, .steps.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-row { grid-template-columns: 190px minmax(0, 1fr) 170px; gap: 8px 20px; }
  .about-strip, .person { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  /* name and price on one line, the description on its own line under them */
  .price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .price-row > p:not(.amt) { grid-column: 1 / -1; grid-row: 2; }
  .price-row > .amt { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  .shots { grid-template-columns: minmax(0, 1fr); }
  .phero { padding-top: 28px; }
  .phero h1 { font-size: clamp(38px, 10.5vw, 54px); }
  .facts, .facts.two { grid-template-columns: 1fr; }
  .facts li { padding: 18px 0 20px; }
  .steps, .steps.three { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .steps li::before { margin: 0; grid-row: span 2; }
  .price-row { grid-template-columns: 1fr; padding: 20px; }
  .price-row .amt { text-align: left; }
  .faq summary { font-size: 18px; padding-right: 40px; }
  .faq .ans { padding-right: 0; }
  .cta-card { padding: 32px 22px; }
  .person-facts li { grid-template-columns: 1fr; gap: 2px; }
  .plain-list { columns: 1; }
}
@media (max-width: 380px) {
  .phero-actions .btn, .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .shot img, .faq summary::before, .faq summary::after { transition: none; }
}

@media print {
  .phero-actions, .cta-actions { display: none; }
  .steps li, .price-row, .cta-card { background: none; border-color: #999; }
  .phero h1 em, .cta-card h2 em, .price-row .amt, .more, .lane-go { color: #000; }
  .lede, .facts p, .steps p, .price-row p, .faq .ans { color: #000; }
}

/* ---------- automation: an example text thread ---------- */
.thread-wrap { justify-self: end; width: 100%; max-width: 400px; }
.thread {
  display: grid; gap: 10px; padding: 22px 20px 24px;
  border-radius: 30px; background: var(--surface); border: var(--edge);
  box-shadow: var(--lift);
}
.thread .when { justify-self: center; padding: 5px 12px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 500; }
.thread .when.done { background: var(--acc-soft); color: var(--acc-text); margin-top: 6px; }
.bubble { max-width: 84%; padding: 11px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.4; }
.bubble.us { justify-self: end; background: var(--acc); color: var(--acc-ink); border-bottom-right-radius: 6px; font-weight: 500; }
.bubble.them { justify-self: start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 6px; }
.thread-cap { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (max-width: 1020px) { .thread-wrap { justify-self: start; } }
@media print { .thread { background: none; border-color: #999; box-shadow: none; } }
