/* SwimSteps design system: see CLAUDE.md in the project root. Shared by the two guide pages. */
:root {
  --pool-400: #12A4D9; --pool-600: #0779A8; --pool-800: #055A7E; --wave-300: #4DC8EE;
  --shallow-100: #E3F5FC; --buoy-500: #FF6B35; --buoy-700: #B8400F; --buoy-50: #FFF1EA;
  --ink: #0E2A3A; --ink-soft: #4A6473; --deep-900: #073B55; --tile: #FFFFFF; --grout: #D5EBF3;
  --page: #EEF8FB; --band: #DDF2FA;
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-6: 3rem; --s-8: 4rem; --s-12: 6rem;
  --r-1: 8px; --r-2: 16px; --r-3: 24px;
  --font-display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 120ms; --dur-hover: 150ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.125rem/1.75rem var(--font-body); -webkit-font-smoothing: antialiased; }
html[lang="he"] body { line-height: 2rem; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--pool-600); }
h1, h2, h3, p, figure { margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--s-3); }
@media (min-width: 768px) { .container { padding-inline: var(--s-4); } }
@media (min-width: 1024px) { .container { padding-inline: var(--s-6); } }
.skip-link { position: absolute; top: -6rem; inset-inline-start: var(--s-2); z-index: 100; padding: var(--s-1) var(--s-2); background: var(--ink); color: #fff; font-weight: 500; text-decoration: none; border-radius: 0 0 var(--r-1) var(--r-1); }
.skip-link:focus { top: 0; }

/* Button: the face sits on a solid lip and presses into it */
.btn { --lip: 4px; display: inline-block; margin-top: var(--lip); border-radius: var(--r-2); background: var(--pool-800); text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:focus-visible { outline-offset: 4px; }
.btn__face { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 var(--s-4); border-radius: var(--r-2); background: var(--pool-600); color: #fff; font: 600 1.25rem/1.5rem var(--font-display); transform: translateY(calc(var(--lip) * -1)); transition: transform var(--dur-press) var(--ease-out); }
.btn:active .btn__face { transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__face { transform: translateY(calc(var(--lip) * -1 - 2px)); }
  .btn:active .btn__face { transform: translateY(0); }
}

/* Header */
.site-header, .guide-hero { background: var(--band); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; direction: ltr; color: var(--ink); font: 700 1.625rem/2rem var(--font-display); text-decoration: none; }
.wordmark svg { flex-shrink: 0; }
.wordmark__accent { color: var(--buoy-500); }
.wordmark--light { color: #fff; }
.site-header__actions { display: flex; align-items: center; gap: var(--s-1); }
.header-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-2); border-radius: var(--r-2); color: var(--pool-800); font-size: 1rem; font-weight: 500; white-space: nowrap; text-decoration: none; transition: background-color var(--dur-hover) ease; }
@media (hover: hover) and (pointer: fine) { .header-link:hover { background: #fff; color: var(--ink); } }
.lang-link { display: inline-flex; align-items: center; gap: var(--s-1); min-width: 44px; min-height: 44px; padding: 0 var(--s-2); background: #fff; color: var(--ink); border: 2px solid var(--grout); border-bottom-width: 4px; border-radius: var(--r-2); font: 500 0.9375rem/1 var(--font-body); text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform var(--dur-press) var(--ease-out); }
.lang-link svg { flex-shrink: 0; color: var(--pool-600); }
.lang-link:active { transform: translateY(2px); }
@media (max-width: 479px) {
  .lang-link__label { display: none; }
  .header-link { padding-inline: var(--s-1); }
}
@media (max-width: 359px) {
  .site-header__row { gap: var(--s-1); }
  .wordmark { font-size: 1.25rem; }
}

/* Guide intro */
.guide-hero { padding-block: var(--s-4) var(--s-8); }
.guide-hero__grid { display: grid; gap: var(--s-4); align-items: center; }
.eyebrow { margin-bottom: var(--s-1); color: var(--buoy-700); font-size: 0.9375rem; line-height: 1.5rem; font-weight: 500; }
.guide-hero h1 { margin-bottom: var(--s-3); font: 700 2.5rem/3rem var(--font-display); text-wrap: balance; }
html[lang="en"] .guide-hero h1, html[lang="en"] h2 { letter-spacing: -0.02em; }
.guide-lead { max-width: 60ch; margin-bottom: var(--s-2); color: var(--ink-soft); font-size: 1.25rem; line-height: 2rem; }
.guide-by { margin-bottom: var(--s-4); color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5rem; }
.guide-cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.micro { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5rem; }
.guide-hero__flip { display: none; }
@media (min-width: 768px) {
  .guide-hero h1 { font-size: 3.5rem; line-height: 4rem; }
}
@media (min-width: 1024px) {
  .guide-hero__grid { grid-template-columns: minmax(0, 1fr) 16rem; gap: var(--s-8); }
  .guide-hero__flip { display: block; width: 16rem; height: auto; }
}
@media (min-width: 1200px) { .guide-hero h1 { font-size: 4rem; line-height: 4.5rem; } }

/* Lane rope divider */
.rope { height: 16px; background-image: radial-gradient(circle at 12px 8px, var(--pool-600) 6px, transparent 6.5px), radial-gradient(circle at 36px 8px, #fff 4.5px, var(--wave-300) 5px, var(--wave-300) 6.5px, transparent 7px), linear-gradient(var(--ink), var(--ink)); background-size: 48px 16px, 48px 16px, 100% 2px; background-position: 0 0, 0 0, center; background-repeat: repeat-x, repeat-x, no-repeat; }

/* Sections */
.guide-section { padding-block: var(--s-8); }
.guide-section + .guide-section { padding-top: 0; }
.guide-section h2 { margin-bottom: var(--s-2); font: 700 2rem/2.5rem var(--font-display); text-wrap: balance; }
@media (min-width: 768px) { .guide-section h2 { font-size: 2.5rem; line-height: 3rem; } }
.guide-section__lead { max-width: 60ch; margin-bottom: var(--s-4); color: var(--ink-soft); }
.tile { padding: var(--s-3); background: var(--tile); border: 2px solid var(--grout); border-bottom-width: 4px; border-radius: var(--r-2); }
@media (min-width: 768px) { .tile { padding: var(--s-4); } }
.before-list { display: grid; gap: var(--s-2); max-width: 60ch; margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.before-list li { position: relative; padding-inline-start: var(--s-4); }
.before-list svg { position: absolute; inset-inline-start: 0; top: 4px; color: var(--pool-600); }
.before-list strong { font-weight: 500; }

/* The six steps */
.steps { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.step { display: grid; gap: var(--s-3); padding: var(--s-2); background: var(--tile); border: 2px solid var(--grout); border-bottom-width: 4px; border-radius: var(--r-2); }
@media (min-width: 768px) {
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--s-4); padding: var(--s-3); }
}
.step video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-1); background: var(--shallow-100); }
.step__num { display: block; margin-bottom: 4px; color: var(--pool-800); font-size: 0.9375rem; line-height: 1.5rem; font-weight: 500; }
.step h3 { margin-bottom: var(--s-1); font: 600 1.5rem/2rem var(--font-display); }
.step__tip { margin-top: var(--s-2); padding: var(--s-2); background: var(--shallow-100); border-radius: var(--r-1); font-size: 1rem; line-height: 1.5rem; }
html[lang="he"] .step__tip { line-height: 1.75rem; }
.step__tip strong { font-weight: 500; }

/* What comes next */
.next-lessons { display: grid; gap: var(--s-2); margin: 0 0 var(--s-3); padding: 0; list-style: none; }
.next-lesson__meta { color: var(--pool-800); font-size: 0.9375rem; line-height: 1.5rem; font-weight: 500; }
.next-lesson h3 { margin-bottom: 4px; font: 600 1.5rem/2rem var(--font-display); }
.next-lesson p { max-width: 60ch; }
.next-lesson__steps { margin-top: var(--s-1); color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--pool-800); font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--ink); } }

/* Questions */
.faq { display: grid; gap: var(--s-4); max-width: 60ch; }
.faq h3 { margin-bottom: 4px; font: 600 1.5rem/2rem var(--font-display); }

/* Closing card */
.closing { display: grid; justify-items: start; gap: var(--s-2); padding: var(--s-4); background: var(--band); border-radius: var(--r-3); }
.closing h2 { margin-bottom: 0; }

/* Footer */
.site-footer { padding-block: var(--s-6); background: var(--deep-900); color: #fff; font-size: 0.9375rem; line-height: 1.5rem; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.safety { display: flex; align-items: flex-start; gap: var(--s-2); max-width: 48rem; margin: 0; padding: var(--s-2) var(--s-3); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: var(--r-2); }
.safety svg { flex-shrink: 0; margin-top: 2px; color: var(--buoy-500); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4) var(--s-3); margin-top: var(--s-6); }
.footer-brand { grid-column: 1 / -1; }
.footer-tagline { max-width: 28rem; margin-top: var(--s-1); color: rgba(255, 255, 255, 0.8); }
.footer-contact { margin-top: var(--s-2); color: rgba(255, 255, 255, 0.8); }
.footer-mail { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.footer-social { color: rgba(255, 255, 255, 0.8); }
.footer-social p { margin: 0; }
.footer-social ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 var(--s-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 1100px) { .footer-social ul { grid-template-columns: repeat(4, max-content); gap: 0 var(--s-3); } }
.footer-social a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; text-decoration: none; text-underline-offset: 4px; }
.footer-social svg { flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) { .footer-social a:hover { text-decoration: underline; } }
.footer-nav__title { margin: 0 0 4px; color: #fff; font: 600 1rem/1.5rem var(--font-display); }
.footer-nav ul { display: grid; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: rgba(255, 255, 255, 0.85); text-decoration: none; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover { color: #fff; text-decoration: underline; } }
@media (min-width: 768px) {
  .footer-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); }
  .footer-brand { grid-column: auto; }
}
.footer-copy { margin: var(--s-6) 0 0; padding-top: var(--s-3); border-top: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.8); }
