/* Trans Voice Coach website. Colours from app/src/theme/palette.ts.
   IBM Plex is served from this site, so no page asks Google (or anyone) for anything. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root { --gx: 24px; }
@media (max-width: 640px) { :root { --gx: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "IBM Plex Sans", system-ui, sans-serif; color: #18181B; background: #FFFFFF; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: #0F766E; } a:hover { color: #115E59; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid #0F766E; outline-offset: 3px; border-radius: 6px; }
.on-dark a:focus-visible, .water a:focus-visible { outline-color: #FFFFFF; }
.mono { font-family: "IBM Plex Mono", monospace; }
h1, h2, h3 { text-wrap: balance; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: #18181B; color: #FFFFFF; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; color: #FFFFFF; }

/* Containers: the canvas's 1200px column with a 24px gutter, 16px on a phone */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gx); padding-right: var(--gx); }

/* Animations from the canvas, still under reduced motion */
@keyframes tvcBlink { 0%, 92%, 100% { transform: scaleY(1) } 95% { transform: scaleY(.1) } }
.tvc-eye { animation: tvcBlink 4.2s infinite; transform-origin: 15px -4px; transform-box: view-box; }
@keyframes tvcTail { 0%, 100% { transform: scaleY(1) } 50% { transform: scaleY(.7) } }
.tvc-tail { animation: tvcTail .9s ease-in-out infinite; transform-origin: 0 0; transform-box: view-box; }
@keyframes fbSwim { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.fb-swim { animation: fbSwim 2.6s ease-in-out infinite; }
@keyframes nfFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.nf-float { animation: nfFloat 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .tvc-eye, .tvc-tail, .fb-swim, .nf-float { animation: none; } }

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary svg { flex-shrink: 0; transition: transform .2s; }
details[open] > summary svg { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { summary svg { transition: none; } }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; background: #FFFFFF; }
.site-header-inner { max-width: 1200px; margin: 0 auto; padding: 20px var(--gx); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #18181B; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: #18181B; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.nav-link { color: #3F3F46; text-decoration: none; }
.nav-link:hover { color: #18181B; }
.nav-link.is-current { color: #18181B; font-weight: 600; }
.nav-cta { background: #0F766E; color: #FFFFFF; text-decoration: none; font-weight: 500; border-radius: 8px; padding: 10px 18px; }
.nav-cta:hover { background: #115E59; color: #FFFFFF; }
.nav-compact { display: none; align-items: center; gap: 6px; }
.menu-button { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; border-radius: 8px; }
.menu-close { display: none; }

@media (max-width: 760px) {
  .site-header { border-bottom: 1px solid #E4E4E7; }
  .site-header-inner { padding-top: 14px; padding-bottom: 14px; gap: 8px; flex-wrap: nowrap; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-compact { display: flex; }
  /* Without script the full nav stays visible, stacked under the header. */
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #FFFFFF; border-bottom: 1px solid #E4E4E7; box-shadow: 0 16px 24px -16px rgba(20, 22, 26, 0.25); flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gx) 16px; font-size: 17px; }
  .site-nav .nav-link { padding: 14px 0; border-bottom: 1px solid #F4F4F5; }
  .site-nav .nav-cta { margin-top: 14px; min-height: 52px; display: flex; align-items: center; justify-content: center; font-weight: 600; border-radius: 10px; }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: flex; }
  .site-header.is-open .menu-open { display: none; }
  .site-header.is-open .menu-close { display: inline; }
}
@media (max-width: 760px) { html:not(.js) .menu-button { display: none; } html:not(.js) .site-nav { position: static; box-shadow: none; } html:not(.js) .site-header-inner { flex-wrap: wrap; } }
@media (max-width: 359px) { .brand span { font-size: 14px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #E4E4E7; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px var(--gx) 48px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; font-size: 14px; color: #6B6B74; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a, .home-footer-nav a { color: #3F3F46; text-decoration: none; }
.footer-links a:hover, .home-footer-nav a:hover { color: #0F766E; text-decoration: underline; }
.home-footer { padding: 48px var(--gx) 56px; gap: 40px; }
.home-footer-nav { display: flex; flex-wrap: wrap; gap: 40px; font-size: 15px; }
.home-footer-nav > div { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) {
  .site-footer-inner { padding-top: 32px; padding-bottom: 40px; font-size: 13px; flex-direction: column-reverse; gap: 20px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 15px; }
  .home-footer { flex-direction: column; }
  .home-footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-footer-nav > div { display: contents; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 10px; }
.btn-teal { background: #0F766E; color: #FFFFFF; font-weight: 600; }
.btn-teal:hover { background: #115E59; color: #FFFFFF; }
.btn-ink { background: #18181B; color: #FFFFFF; }
.btn-ink:hover { background: #3F3F46; color: #FFFFFF; }
.btn-line { border: 1px solid #D4D4D8; color: #18181B; font-weight: 500; }
.btn-line:hover { border-color: #A1A1AA; color: #18181B; background: #FAFAFA; }
.btn-white { background: #FFFFFF; color: #103149; font-weight: 600; }
.btn-white:hover { background: #eef6f8; color: #103149; }
.card-link { transition: box-shadow .15s; }
.card-link:hover { box-shadow: 0 0 0 1px #A1A1AA inset; color: inherit; }

/* ---------- App phone mockups (272 x 560) ---------- */
.app-phone { width: 272px; height: 560px; background: #18181B; border-radius: 44px; padding: 10px; font-family: "IBM Plex Sans", system-ui, sans-serif; color: #18181B; text-align: left; }
.app-screen { width: 100%; height: 100%; border-radius: 35px; overflow: hidden; display: flex; flex-direction: column; }
.phone-shadow { border-radius: 44px; box-shadow: 0 30px 60px -20px rgba(20, 22, 26, 0.4); }

/* ---------- Home ---------- */
.hero-phones { flex: 1 1 480px; min-width: 0; position: relative; height: 640px; max-width: 540px; }
.hero-phones .ph-fish { position: absolute; right: 0; top: 0; transform: rotate(4deg); transform-origin: 50% 0; border-radius: 44px; box-shadow: 0 30px 60px -24px rgba(16, 49, 73, 0.45); }
.hero-phones .ph-today { position: absolute; left: 24px; bottom: 0; border-radius: 44px; box-shadow: 0 30px 60px -20px rgba(20, 22, 26, 0.4); }
@media (max-width: 640px) {
  .hero { padding-top: 36px !important; gap: 40px !important; }
  .hero-ctas { flex-direction: column; align-items: stretch !important; }
  .hero-ctas > a { justify-content: center; min-height: 56px; }
  .hero-note { text-align: center; font-size: 13px !important; }
  .hero-phones { flex-basis: auto; width: 100%; height: 480px; }
  .hero-phones .ph-fish { width: 272px; height: 560px; transform: scale(0.7) rotate(4deg); transform-origin: 100% 0; box-shadow: none; }
  .hero-phones .ph-today { top: 46px; bottom: auto; left: 0; transform: scale(0.76); transform-origin: 0 0; }
  .phases { display: flex !important; flex-direction: column; gap: 0 !important; }
  .phases li { flex-direction: row !important; justify-content: space-between; align-items: baseline; border-top: 0 !important; border-bottom: 1px solid #E4E4E7; padding: 12px 0 !important; gap: 12px !important; }
  .phases li:last-child { border-bottom: 0; }
  .phases li .ph-time { order: 2; }
  .phases li .ph-name { font-size: 16px !important; font-weight: 400 !important; }
  .phases li.ph-main .ph-name { font-weight: 600 !important; }
  .phases li.ph-main .ph-time { color: #115E59 !important; }
  .phases li .ph-desc { display: none; }
  .phase-bar { height: 44px !important; border-radius: 10px !important; gap: 2px !important; }
  .stage-days { display: none; }
  .stages-home li { grid-template-columns: 26px minmax(0, 1fr) !important; gap: 14px !important; padding: 12px 0 !important; }
  .stages-home .st-name { font-size: 17px !important; }
  .stages-home .st-gloss { font-size: 14px !important; }
  .fish-home-art { max-width: 200px !important; height: auto; }
  .follow-box { padding: 28px 20px !important; }
  .get-card { flex-direction: column; align-items: stretch !important; gap: 12px !important; padding: 18px !important; }
  .get-card > a { width: 100%; }
}

/* ---------- Tables and lists that restack on a phone ---------- */
@media (max-width: 640px) {
  .keeps-table, .keeps-table tbody, .keeps-table tr, .keeps-table th, .keeps-table td { display: block; min-width: 0 !important; width: 100%; }
  .keeps-table thead { display: none; }
  .keeps-table tr { padding: 16px 0; border-bottom: 1px solid #E4E4E7; }
  .keeps-table th, .keeps-table td { border: 0 !important; padding: 2px 0 !important; }
  .keeps-table td[data-label]::before { content: attr(data-label) ": "; color: #6B6B74; font-size: 14px; }
  .log li { grid-template-columns: minmax(0, 1fr) !important; gap: 6px !important; }
  .words { grid-template-columns: minmax(0, 1fr) !important; }
  .words dt { padding-bottom: 2px !important; border-bottom: 0 !important; }
  .words dd { padding-top: 0 !important; }
  .bodies > div { grid-template-columns: minmax(0, 1fr) !important; gap: 4px !important; }
}

/* ---------- Fish Baby hero ---------- */
.fb-hero { position: relative; background: linear-gradient(180deg, #7fd0d8 0%, #2f86a0 58%, #103149 100%); overflow: hidden; color: #FFFFFF; }
.fb-hero-art { display: block; width: 100%; height: 660px; }
@media (max-width: 760px) {
  .fb-hero-art { height: 600px; }
}
@media (max-width: 480px) {
  /* Keep Fish Baby and the gap in view: show the right-hand part of the water. */
  .fb-hero-art { width: 1164px; max-width: none; height: 600px; margin-left: calc(50vw - 689px); }
}

/* ---------- 404 ---------- */
.water { min-height: 100vh; background: linear-gradient(180deg, #2f4f86 0%, #103149 60%, #0a1e30 100%); color: #FFFFFF; display: flex; flex-direction: column; }
.water-header { width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px var(--gx); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.water-header .brand:hover { color: #FFFFFF; }
.water-main { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px var(--gx); text-align: center; }
@media (max-width: 400px) { .water-header .brand span { font-size: 15px; } }

/* ---------- Print ---------- */
@media print { .site-nav, .nav-compact, .skip { display: none !important; } }
