/* Styles for tools/pages/index.py only. The shell links this file on that page alone. */

/* Hero */
.hero { padding-top: calc(var(--section) + 8px); }
.hero .display { max-width: 11em; }
.hero .lead { max-width: 34em; margin-top: 20px; }
.hero-price { margin-top: 16px; color: var(--ink); }
/* The product beside the promise: one sample post (posts.css), right of the text on a desktop, under the buttons on
   a phone. */
.hero-post { margin-top: 48px; max-width: 400px; }
.hero-post-note { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; }
  .hero-grid .display { font-size: clamp(48px, 5.4vw, 68px); }
  .hero-grid .lead { font-size: 19px; }
  .hero-post { margin-top: 0; }
}

/* Problem and solution side by side */
.h-side { font-size: clamp(24px, 3.2vw, 30px); }
.h-side + p { margin-top: 12px; }

/* Two doors: hairline rows, the whole row is the link */
.doors a { display: flex; flex-direction: column; gap: 4px; min-height: 44px; text-decoration: none; }
.door-title { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.doors a:hover .door-title { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) {
  .doors a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; gap: 32px; }
}

/* Price */
.price-figure { margin-top: 20px; font-size: clamp(56px, 10vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price-figure span { font-size: 0.32em; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); }
.price .lead { margin-top: 16px; }
.included > * { padding: 14px 0; }
@media (min-width: 768px) {
  .price { align-items: start; }
  .included { margin-top: 8px; }
}

/* Steps: number, title, one line. One column on a phone, four on a desktop. */
.steps { list-style: none; padding: 0; display: grid; gap: 0; }
.steps li { padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.steps h3 + p { margin-top: 6px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li, .steps li:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* FAQ: native details, hairlines, no focus box on click */
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  list-style: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; color: var(--ink-2);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus { outline: none; }
.faq summary:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
.faq details p { padding: 0 32px 20px 0; color: var(--ink-2); }

/* Contact: two columns from 768px. Left: heading, give-first line, Tarvo. Right: the number and the address,
   which are the links themselves. */
.person { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.person-photo { width: 104px; height: 104px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; flex: none; }
.contact-person { font-size: 21px; font-weight: 600; line-height: 1.3; }
.contact-person span { display: block; font-size: 17px; font-weight: 400; }
.contact-links { margin-top: 0; }
.contact-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; text-decoration: none;
}
.contact-link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (min-width: 768px) {
  .contact { align-items: end; }
  .contact-links { padding-bottom: 28px; }
}
