/* How It Works page — builds on styles.css + pricing.css */

.photo { border-radius: 18px; overflow: hidden; background: #ddd5c6; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.h-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 16px 0 24px; }
.h-hero h1 { margin: 0 0 24px; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; max-width: 11.5ch; }
.h-hero .lead { max-width: 44ch; font-size: 17px; }
.h-hero-photo { aspect-ratio: 1.1 / 1; }

.section-rule { margin-top: 64px; border-top: 1px solid var(--border); }
.section-lead.wide { max-width: 58ch; }

/* Line icons shared on this page */
.steps svg, .benefits svg, .secure-grid svg {
  flex: none; width: 34px; height: 34px; fill: none; stroke: var(--ink);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.benefits svg .bg { fill: var(--bg); }
.secure-grid svg.solid { fill: var(--ink); stroke: none; }

/* Process steps */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { padding: 0 24px; border-left: 1px solid var(--border); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.step-top { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 13px; font-weight: 600; }
.rule { flex: 1; height: 1px; background: var(--border); }
.steps h3, .benefits h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.01em; }
.steps p, .benefits p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 28ch; }

/* Built around your needs */
.split-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.split-head p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 42ch; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
.benefits > div { padding: 0 24px; border-left: 1px solid var(--border); }
.benefits > div:first-child { padding-left: 0; border-left: 0; }
.benefits svg { margin-bottom: 18px; }

/* One app vs SaaS */
.one-app { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; }
.one-app-photo { position: relative; min-height: 420px; }
/* Photo fills the row height set by the text column instead of growing with its width */
.one-app-photo img { position: absolute; inset: 0; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 32px; }
.compare-col { background: #ebe8e1; border-radius: 14px; padding: 20px 22px; height: 100%; }
.compare-col h3 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #dcd8cf; font-size: 15px; }
.compare-arrow { font-size: 22px; }
.xlist, .vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; font-size: 14px; color: var(--ink-2); }
.xlist li, .vlist li { display: flex; gap: 12px; align-items: flex-start; }
.xlist li::before, .vlist li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: center / 10px no-repeat; }
.xlist li::before {
  background-color: #8a8f8c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E");
}
.vlist li::before {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Security */
.secure { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
.secure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.secure-grid h3 { margin: 14px 0 6px; font-size: 14px; line-height: 1.35; }
.secure-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.secure-photo { aspect-ratio: 0.9 / 1; }

/* Responsive */
@media (max-width: 1100px) {
  .steps, .benefits { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li:nth-child(3), .benefits > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .one-app, .secure { grid-template-columns: 1fr; }
  .one-app-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .secure-photo { aspect-ratio: 16 / 9; }
  .secure-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .h-hero, .split-head { grid-template-columns: 1fr; gap: 24px; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .steps, .benefits { grid-template-columns: 1fr; row-gap: 32px; }
  .steps li, .benefits > div { padding-left: 0; border-left: 0; }
  .steps p, .benefits p { max-width: none; }
}

/* Prompt card over the hero photo */
.h-hero-photo { position: relative; }
.prompt-card {
  position: absolute; right: 4%; bottom: 6%; width: min(58%, 320px);
  padding: 16px 18px 18px; background: rgba(255, 255, 255, .96); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(17, 22, 20, .16); font-size: 13px;
}
.prompt-card b { display: block; margin-bottom: 8px; font-size: 14px; }
.prompt-card p { margin: 0 0 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--ink-2); line-height: 1.5; }
.prompt-send { float: right; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--dark); color: #fff; }
@media (max-width: 640px) { .prompt-card p { display: none; } }
