/* Home page only. Shared components live in site.css.
   Port of home-demos/site-d/assets/css/home.css. Demo classes (.fc, .face, .done, .ans)
   are scoped under .device so they cannot collide with the practice pages. */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 7rem) 0 clamp(7rem, 14vw, 11rem); isolation: isolate; }
.hero .blob-sun { width: clamp(260px, 44vw, 560px); right: -8%; top: -12%; }
.hero .blob-sea { width: clamp(220px, 36vw, 460px); left: -12%; bottom: 8%; }
.hero .blob-leaf { width: clamp(90px, 14vw, 180px); right: 22%; bottom: 14%; }
.hero .kapa-band { width: clamp(120px, 22vw, 220px); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.9rem, 1.6rem + 6vw, 5.2rem); }
.hero h1 span { display: block; font-style: italic; font-weight: 500; color: var(--terracotta); font-size: .46em; margin-top: .3em; }
.hero .lede { margin-top: 1.5rem; }
.hero .btn { margin-top: 2rem; }
/* Start Learning: flat fill (no sunset gradient / gloss overlay from upgrades.css) */
#start-learning-button { background: var(--terracotta); }
#start-learning-button:hover { background: var(--terracotta-dark); }
#start-learning-button::after { content: none; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; position: relative; z-index: 2; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }
.hero > .divider { --divider-fill: var(--ocean); }

/* ---------- Hero flashcard ---------- */
.device { position: relative; max-width: 380px; width: 100%; justify-self: center; padding: 1.1rem 1.1rem 1.25rem; border-radius: 32px 32px 32px 72px; background: var(--plumeria-soft); border: 1px solid rgba(58, 36, 24, .08); box-shadow: var(--shadow-lift); }
.dev-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; padding-inline: .25rem; }
.dev-top .eyebrow { font-size: .75rem; }

.device .fc { perspective: 1000px; display: block; width: 100%; background: none; border: 0; padding: 0; color: var(--koa); font: inherit; text-align: center; border-radius: 24px; min-height: 0; }
.device .fc-in { position: relative; display: block; height: clamp(190px, 50vw, 230px); transition: transform .55s var(--ease); transform-style: preserve-3d; }
.device .fc[aria-pressed="true"] .fc-in { transform: rotateY(180deg); }
.device .face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; border-radius: 24px; border: 3px solid var(--ocean); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow-soft); }
.device .face.front { background: var(--sand-soft); }
.device .face.back { background: var(--ocean-mist); transform: rotateY(180deg); }
.device .face small { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta-dark); }
.device .face strong { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3rem); font-weight: 700; color: var(--ocean-deep); line-height: 1.1; }
.device .face em { font-size: .9rem; font-style: normal; color: var(--koa-soft); }
.device .fc:hover .fc-in { transform: translateY(-3px); }
.device .fc[aria-pressed="true"]:hover .fc-in { transform: rotateY(180deg) translateY(-3px); }
.device .fc:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }

.answers { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.device .ans { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; border-radius: 999px; font: inherit; font-weight: 600; border: 2px solid var(--ocean); background: transparent; color: var(--ocean-deep); transition: transform .35s var(--spring), background-color .2s, color .2s; }
.device .ans svg { width: 18px; height: 18px; }
.device .ans:hover { transform: translateY(-3px); background: var(--ocean-mist); }
.device .ans.yes { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.device .ans.yes:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.device .ans:active { transform: translateY(0); }

.device .done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; text-align: center; min-height: 262px; padding: 1rem; border-radius: 24px; background: var(--sand-soft); border: 3px solid var(--ocean); box-shadow: var(--shadow-soft); }
.device .done h2 { font-size: 2rem; }
.device .done p { color: var(--koa-soft); }
.device .done .ans { padding: 0 1.5rem; }

/* ---------- Mission ---------- */
/* Dark band: Proverb of the Day (text styles in proverb.css) */
.proverb-band { position: relative; background: var(--ocean); color: #f3ece0; padding: clamp(2rem, 5.5vw, 4rem) 0 clamp(5rem, 10vw, 8rem); overflow: hidden; isolation: isolate; }
.proverb-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M24 4 44 24 24 44 4 24Z M24 14 34 24 24 34 14 24Z' fill='none' stroke='white' stroke-width='1.5'/></svg>");
}
.proverb-band .inner { max-width: 46rem; text-align: center; margin-inline: auto; }
.proverb-band .eyebrow { color: var(--plumeria); }
.proverb-band .divider { --divider-fill: var(--sand); }

/* Mission statement: glass card below the dark band */
/* Padding tuned so the card sits centered between the dark band's wave above and the stats strip below */
.mission-band { position: relative; padding: clamp(1.25rem, 3.6vw, 2.9rem) 0 0; margin-bottom: -.4rem; }
.mission { position: relative; z-index: 2; }
.mission-card {
  max-width: 46rem; margin-inline: auto; text-align: center; color: var(--koa);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 74, 87, .22);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
}
.mission-text { margin-top: 1rem; font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 2vw, 2.3rem); line-height: 1.35; font-weight: 500; color: var(--ocean-deep); }
.mission-text em { color: var(--terracotta-dark); }

/* ---------- Features ---------- */
.features { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; margin-top: -1px; }
.features .card { padding: 2rem 1.75rem 1.75rem; border-radius: 28px 28px 28px 84px; }
.features .card:nth-child(2) { border-radius: 84px 28px 28px 28px; }
.features .card:nth-child(3) { border-radius: 28px 84px 28px 28px; }
.features .card:nth-child(4) { border-radius: 28px 28px 84px 28px; }
.features .card h2 { font-size: 1.6rem; }
@media (min-width: 760px) { .features .grid-4 { gap: 1.75rem; } .features .card:nth-child(2), .features .card:nth-child(4) { margin-top: 2.5rem; } }

/* Real icon art (/assets/icons/*.svg) is the chunky koa-outline set: it already has its own dark outline
   and fills, so it sits unmodified on a sand-soft disc with a coloured ring. */
.features .card-icon { width: 68px; height: 68px; background: var(--sand-soft); border: 2px solid var(--ocean); box-shadow: var(--shadow-soft); }
.features .card:nth-child(2) .card-icon { border-color: var(--terracotta-dark); }
.features .card:nth-child(3) .card-icon { border-color: #3b5229; }
.features .card:nth-child(4) .card-icon { border-color: var(--sea-ink); }
.features .card-icon img { width: 38px; height: 38px; display: block; }

.coming-soon { margin-top: 3rem; text-align: center; color: var(--koa-soft); }

/* ---------- About ---------- */
.about { position: relative; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.about-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.about-photo { margin: 0; order: -1; justify-self: center; width: min(100%, 340px); }
.arch { position: relative; border-radius: 999px 999px 28px 28px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 2 / 3; background: var(--sand-deep); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-ring { position: absolute; inset: -14px; z-index: -1; border-radius: 999px 999px 40px 40px; border: 2px dashed var(--terracotta); opacity: .5; }
.photo-wrap { position: relative; isolation: isolate; }
.about-photo figcaption { margin-top: 1rem; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--koa-soft); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.35fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .about-photo { order: 0; width: 100%; position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}
.about h2 { margin-top: .5rem; }
.about-blurb { margin-top: 1.25rem; font-size: 1.1rem; color: var(--koa-soft); max-width: 38rem; }

.people { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .people { grid-template-columns: 1fr 1fr; } }
.person { background: var(--sand-soft); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; box-shadow: var(--shadow-soft); border: 1px solid rgba(58, 36, 24, .07); display: flex; flex-direction: column; gap: .5rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--ocean); }
.person:nth-child(2) .avatar { background: var(--terracotta-dark); }
.person strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--ocean-deep); line-height: 1.2; }
.person span.role { color: var(--koa-soft); font-size: .98rem; }

.story { margin-top: 1.5rem; background: var(--ocean-mist); border-radius: var(--r-lg); padding: .35rem 1.25rem; }
.story summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; color: var(--ocean-deep); list-style: none; cursor: pointer; }
.story summary::-webkit-details-marker { display: none; }
.story summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.story[open] summary::after { transform: rotate(-135deg); }
.story summary:hover { color: var(--terracotta-dark); }
.story p { padding: .25rem 0 1.25rem; color: var(--koa); }

.contact-card { margin-top: 1.5rem; padding: 1.5rem; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 64px; background: var(--ocean-deep); color: #f3ece0; box-shadow: var(--shadow-soft); }
.contact-card h3 { color: #fff; margin-bottom: .75rem; }
.email { display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; padding: .35rem 0; }
.email span { color: var(--plumeria); font-weight: 600; min-width: 7.5rem; }
.email a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; text-underline-offset: 3px; transition: color .2s; }
.email a:hover { color: var(--plumeria); }
.contact-card :focus-visible { outline-color: var(--plumeria); }

@media (prefers-reduced-motion: reduce) {
  .device .fc:hover .fc-in, .device .ans:hover { transform: none; }
  .device .fc[aria-pressed="true"] .fc-in, .device .fc[aria-pressed="true"]:hover .fc-in { transform: rotateY(180deg); }
}
