/* page.css: the Design Language to Prompt page and its privacy policy.
   The header, breadcrumb, buttons, three-step row, and footer come from
   styles.css (a copy of the city pages' stylesheet). */

:where(a) { color: inherit; }
:where(h1, h2, h3, p, dl, dd, figure, ul) { margin: 0; }

body.tool-page {
  background:
    radial-gradient(1100px 560px at 72% -8%, #0f2a5599 0%, transparent 62%) no-repeat,
    var(--bg);
  line-height: 1.6;
}

/* Hero: the message first, then the demo below it in the same flow. */

.tool-hero { max-width: 1680px; margin: auto; padding: 23px 5% 0; }
.tool-intro { max-width: 880px; padding: 40px 0 56px; }

#tool-title {
  font: 600 clamp(40px, 5.2vw, 78px)/1.06 var(--font-display);
  letter-spacing: -0.05em;
  color: #f2f6ff;
  text-wrap: balance;
  margin-bottom: 28px;
}

.tool-lead { font-size: 18px; line-height: 1.8; color: #acbdd6; max-width: 640px; text-wrap: pretty; }

.tool-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: #bfd9ff;
  text-decoration: none;
  border-bottom: 1px solid #8eb6ed4d;
}
.tool-text-link:hover { color: #fff; border-color: #b6d4ff; }

.tool-demo { padding-bottom: 80px; }
.tool-demo-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 28px;
  align-items: center;
}
.tool-demo img { display: block; width: 100%; height: auto; border-radius: 7px; }
.tool-demo-site { border: 1px solid #88aee233; box-shadow: 0 30px 80px #00000080; }
.tool-demo-popup { border: 1px solid #88b6ff55; box-shadow: 0 0 22px #2871f53d, 0 30px 60px #000000a0; }
.tool-demo figcaption { margin-top: 18px; font-size: 13px; color: #8fa5c3; }

/* Sections: a hairline, then the heading directly above its text. */

.tool-heading {
  font: 500 clamp(34px, 3.6vw, 56px)/1.15 var(--font-display);
  letter-spacing: -0.045em;
  color: #edf4ff;
  max-width: 900px;
  text-wrap: balance;
}
.tool-steps .tool-heading { margin: 0 0 46px; }

.tool-section { max-width: 1680px; margin: 0 auto; padding: 0 5% 90px; }
.tool-section::before {
  content: '';
  display: block;
  border-top: 1px solid #91b5ed26;
  padding-top: 55px;
}
.tool-section > .tool-heading { margin-bottom: 24px; }

.tool-copy { max-width: 680px; font-size: 17px; line-height: 1.85; color: #acbfd9; text-wrap: pretty; }
.tool-copy + .tool-copy { margin-top: 18px; }

.tool-reads { margin-top: 36px; max-width: 820px; border-top: 1px solid #91b5ed1f; }
.tool-reads > div { padding: 22px 0; border-bottom: 1px solid #91b5ed1f; }
.tool-reads dt {
  font: 500 22px/1.3 var(--font-display);
  letter-spacing: -0.02em;
  color: #edf4ff;
  margin-bottom: 8px;
}
.tool-reads dd { max-width: 640px; font-size: 16px; line-height: 1.8; color: #acbfd9; text-wrap: pretty; }
.tool-reads code { font-size: 0.9em; color: #bfd9ff; background: #0b1c36; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }

/* Two short promises read side by side, each heading above its own text. */
.tool-promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 7%; }
.tool-promises::before { grid-column: 1 / -1; }
.tool-subheading {
  font: 500 clamp(28px, 2.6vw, 40px)/1.2 var(--font-display);
  letter-spacing: -0.04em;
  color: #edf4ff;
  text-wrap: balance;
  margin-bottom: 20px;
}
.tool-promise .tool-copy { font-size: 16px; }

.tool-closing .location-actions { margin-top: 26px; }
.tool-closing .section-call { margin-top: 0; }

/* Privacy policy */

.policy-intro { max-width: 760px; padding: 40px 0 50px; }
.policy-title {
  font: 600 clamp(36px, 4.4vw, 64px)/1.1 var(--font-display);
  letter-spacing: -0.045em;
  color: #f2f6ff;
  text-wrap: balance;
  margin-bottom: 18px;
}
.policy-date { font-size: 14px; color: #8fa5c3; }
.policy-section { max-width: 1680px; margin: 0 auto; padding: 0 5% 56px; }
.policy-section > * { max-width: 720px; }
.policy-section h2 {
  font: 500 clamp(26px, 2.4vw, 34px)/1.25 var(--font-display);
  letter-spacing: -0.03em;
  color: #edf4ff;
  border-top: 1px solid #91b5ed26;
  padding-top: 34px;
  margin-bottom: 16px;
  text-wrap: balance;
}
.policy-section p, .policy-section dd { font-size: 17px; line-height: 1.85; color: #acbfd9; text-wrap: pretty; }
.policy-section p + p { margin-top: 16px; }
.policy-section dl > div { padding: 12px 0; }
.policy-section dt { font-weight: 600; color: #e3edfb; }
.policy-section a { color: #bfd9ff; }
.policy-section code { font-size: 0.9em; color: #bfd9ff; }

/* Responsive */

@media (max-width: 800px) {
  .tool-hero { padding: 19px 6% 0; }
  .tool-intro { padding: 28px 0 40px; }
  .tool-lead { font-size: 17px; }
  .tool-demo { padding-bottom: 56px; }
  .tool-demo-frame { grid-template-columns: 1fr; gap: 22px; }
  .tool-demo-popup { width: min(100%, 340px); justify-self: center; }
  .tool-section { padding: 0 6% 60px; }
  .tool-section::before { padding-top: 40px; }
  .tool-steps .tool-heading { margin-bottom: 30px; }
  .tool-promises { grid-template-columns: 1fr; row-gap: 44px; }
  .policy-section { padding: 0 6% 44px; }
}

@media (max-width: 560px) {
  #tool-title { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.1; }
  .tool-lead, .tool-copy, .policy-section p, .policy-section dd { font-size: 16px; }
  .tool-heading { font-size: clamp(30px, 8.4vw, 36px); }
  .tool-reads dt { font-size: 20px; }
  .tool-section { padding-bottom: 50px; }
}
