/* Tomeny Teacher — warm cream / ink / teal heart accent */
:root {
  --cream: #f7f1e8;
  --cream-deep: #efe6d8;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --teal-soft: #ccfbf1;
  --card: #fffdf9;
  --line: rgba(28, 25, 23, 0.1);
  --shadow: 0 18px 40px rgba(28, 25, 23, 0.08);
  --radius: 1.25rem;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --max: 68rem;
  --narrow: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(251, 191, 36, 0.1), transparent 50%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0d9488;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 241, 232, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.18);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav {
  display: none;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--teal);
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    padding-block: 1.5rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pronounce {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.pronounce strong {
  color: var(--ink);
  font-weight: 600;
}

.lede {
  margin: 1.35rem 0 0;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.lede em {
  font-style: italic;
  color: var(--ink);
  font-family: var(--font-display);
}

/* Device visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.device-frame {
  text-align: center;
}

.device-screen {
  position: relative;
  width: min(100%, 16.5rem);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  padding: 1.1rem;
  border-radius: 1.6rem;
  background: linear-gradient(160deg, #292524, #1c1917 55%, #0f766e);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.device-screen img {
  width: 72%;
  border-radius: 1rem;
  mix-blend-mode: lighten;
  opacity: 0.95;
}

.heart {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--teal-bright);
  transform: rotate(-45deg);
  border-radius: 0.15rem;
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.55);
  position: relative;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  background: inherit;
  border-radius: 50%;
}

.heart::before {
  top: -0.55rem;
  left: 0;
}

.heart::after {
  top: 0;
  left: 0.55rem;
}

.device-screen .heart {
  position: absolute;
  bottom: 1.35rem;
  left: 50%;
  margin-left: -0.55rem;
}

.device-caption {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.heart-lg {
  width: 1.45rem;
  height: 1.45rem;
  margin-bottom: 1rem;
}

.heart-lg::before,
.heart-lg::after {
  width: 1.45rem;
  height: 1.45rem;
}

.heart-lg::before {
  top: -0.725rem;
}

.heart-lg::after {
  left: 0.725rem;
}

/* Sections */
.section {
  padding: 3.75rem 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(204, 251, 241, 0.35), rgba(247, 241, 232, 0));
  border-block: 1px solid rgba(15, 118, 110, 0.12);
}

/* Family server: dusk around the edges, light in the words */
.section-ink {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 252, 245, 0.97) 0%, rgba(247, 241, 232, 0.92) 42%, transparent 72%),
    linear-gradient(165deg, #1c1917 0%, #292524 45%, #0f766e 130%);
  color: var(--ink);
}

.section-ink .section-kicker {
  color: var(--teal);
}

.section-ink h2 {
  color: var(--ink);
  text-shadow: 0 0 40px rgba(255, 252, 245, 0.9);
}

.section-ink p,
.section-ink strong {
  color: var(--ink-soft);
}

.section-ink .wrap.narrow {
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid rgba(255, 252, 245, 0.98);
  border-radius: calc(var(--radius) + 0.35rem);
  padding: 2rem 1.5rem;
  box-shadow:
    0 0 0 1px rgba(15, 118, 110, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.18),
    0 0 80px rgba(255, 252, 245, 0.55);
}

@media (min-width: 640px) {
  .section-ink .wrap.narrow {
    padding: 2.5rem 2.25rem;
  }
}

.section-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.section p:last-child {
  margin-bottom: 0;
}

.pill-row {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pill-row li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 1.02rem;
}

.example {
  margin: 1.75rem 0 0;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffefb, var(--cream));
  border: 1px solid rgba(15, 118, 110, 0.2);
  box-shadow: 0 0 32px rgba(45, 212, 191, 0.22);
}

.example figcaption {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.45rem;
}

.example-name {
  margin: 0 !important;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  text-shadow: 0 0 24px rgba(45, 212, 191, 0.35);
}

.example-note {
  margin: 0.55rem 0 0 !important;
  font-size: 0.95rem;
  color: var(--ink-soft) !important;
}

.closing {
  text-align: center;
  padding-bottom: 4.5rem;
}

.closing .center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing p {
  max-width: 32rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-meta a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* —— Talk to Tomeny demo —— */
.section-talk {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(20, 184, 166, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.7), transparent);
  border-block: 1px solid rgba(15, 118, 110, 0.12);
}

.section-talk em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
}

.talk-panel {
  margin-top: 1.75rem;
  padding: 1.5rem 1.25rem 1.35rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .talk-panel {
    padding: 1.75rem 1.75rem 1.5rem;
  }
}

.talk-stage {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.5rem;
}

.talk-heart {
  margin-bottom: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-talk.is-listening .talk-heart,
.section-talk.is-thinking .talk-heart,
.section-talk.is-speaking .talk-heart {
  animation: talk-pulse 1.1s ease-in-out infinite;
  box-shadow: 0 0 22px rgba(20, 184, 166, 0.7);
}

@keyframes talk-pulse {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  50% { transform: rotate(-45deg) scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .section-talk.is-listening .talk-heart,
  .section-talk.is-thinking .talk-heart,
  .section-talk.is-speaking .talk-heart {
    animation: none;
  }
}

.talk-status {
  margin: 0 !important;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  min-height: 1.5em;
}

.talk-status.is-listen {
  color: var(--teal);
}

.talk-status.is-ok {
  color: var(--ink);
}

.talk-status.is-err {
  color: #b45309;
}

.talk-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  width: min(100%, 11.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(160deg, #14b8a6, #0f766e 55%, #115e59);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(15, 118, 110, 0.35),
    inset 0 0 0 3px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.talk-btn:hover {
  transform: scale(1.03);
}

.talk-btn:active,
.talk-btn[aria-pressed="true"] {
  transform: scale(0.97);
  box-shadow:
    0 6px 18px rgba(15, 118, 110, 0.4),
    inset 0 0 0 3px rgba(255, 255, 255, 0.18),
    0 0 0 6px rgba(20, 184, 166, 0.25);
}

.talk-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.talk-btn-label {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.talk-btn-hint {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
}

.talk-transcript {
  width: 100%;
  max-height: 16rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0.15rem;
}

.talk-transcript:empty {
  display: none;
}

.talk-bubble {
  padding: 0.75rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--cream);
}

.talk-bubble--user {
  align-self: flex-end;
  max-width: 92%;
  background: var(--teal-soft);
  border-color: rgba(15, 118, 110, 0.2);
}

.talk-bubble--assistant {
  align-self: flex-start;
  max-width: 96%;
  background: #fffefb;
}

.talk-bubble-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.talk-bubble p {
  margin: 0 !important;
  font-size: 1.02rem;
  color: var(--ink) !important;
  line-height: 1.5;
}

.talk-form {
  width: 100%;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .talk-form {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "msg msg"
      "rel send";
    align-items: end;
  }
  .talk-form .talk-field:first-child {
    grid-area: msg;
  }
  .talk-field--select {
    grid-area: rel;
  }
  .talk-send {
    grid-area: send;
  }
}

.talk-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.talk-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.talk-field input,
.talk-field select {
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.talk-field input:focus,
.talk-field select:focus {
  outline: 2px solid rgba(20, 184, 166, 0.45);
  outline-offset: 1px;
  border-color: var(--teal);
}

.talk-send {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--cream);
  white-space: nowrap;
}

.talk-send:hover {
  background: #292524;
}

.talk-fine {
  margin: 0 !important;
  font-size: 0.88rem !important;
  color: var(--muted) !important;
  text-align: center;
  max-width: 28rem;
}

.talk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  justify-content: center;
  margin: 1rem 0 1.25rem;
}
.talk-enable {
  border: 1px solid rgba(15, 118, 110, 0.35);
  background: #fff;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.talk-enable:hover {
  background: rgba(204, 251, 241, 0.5);
}
.talk-enable.is-on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.talk-heard {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.2em;
}


.talk-form--simple {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.talk-form--simple input {
  flex: 1;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 0.65rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
}
.talk-form--simple button {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.65rem 1rem;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
