:root {
  --ink: #18222b;
  --muted: #64717b;
  --paper: #fffdf8;
  --wash: #f1eee7;
  --line: #dedbd2;
  --green: #245c53;
  --mint: #dcebe3;
  --coral: #e67b60;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: white; padding: .6rem .9rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.shell { width: min(calc(100% - 2.5rem), var(--max)); margin: auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,253,248,.94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { text-decoration: none; font-weight: 800; font-size: 1.18rem; letter-spacing: -.045em; }
.site-header .brand { display: inline-flex; align-items: center; gap: 0; }
.site-header .brand::before { content: ""; display: block; width: 40px; height: 32px; flex: 0 0 auto; margin-right: .55rem; background: url("assets/trylingual-triangle.png") center / contain no-repeat; }
.brand-mark { color: var(--green); }
.nav-toggle { display: none; border: 1px solid var(--line); padding: .55rem .7rem; background: var(--paper); color: var(--ink); font: inherit; border-radius: .4rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .93rem; }
.site-nav a { text-decoration: none; color: #40505b; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }
.store-link { display: inline-flex; align-items: center; justify-content: center; border-radius: .45rem; background: var(--green); color: white !important; padding: .65rem .95rem; font-weight: 700; text-decoration: none !important; }
.store-link.is-disabled { opacity: .6; cursor: not-allowed; }
.store-link.is-disabled:hover { color: white; }

main { overflow: hidden; }
.hero { padding: clamp(4.2rem, 10vw, 8rem) 0 4.5rem; background: linear-gradient(120deg, #fffdf8 5%, #e9f2ec 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.eyebrow { display: block; margin: 0 0 1rem; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.05em; margin: 0; }
h1 { font-size: clamp(3.2rem, 7.5vw, 6.4rem); max-width: 10ch; }
h2 { font-size: clamp(2rem, 4.5vw, 3.45rem); max-width: 17ch; }
h3 { font-size: 1.35rem; }
.hero p { font-size: 1.15rem; color: #3f4c55; max-width: 38rem; margin: 1.5rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--green); border-radius: .45rem; padding: .75rem 1rem; text-decoration: none; font-weight: 750; background: var(--green); color: white; }
.button.secondary { background: transparent; color: var(--green); }
.button:hover { transform: translateY(-1px); }
.app-card { padding: 1.15rem; border: 1px solid rgba(36,92,83,.19); border-radius: 1.25rem; background: #194d46; color: white; box-shadow: 0 22px 55px rgba(30,63,59,.18); transform: rotate(2deg); }
.brand-art { display: block; width: min(100%, 520px); max-height: 450px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(36,92,83,.18)); }
.app-card small { color: #b5d5ca; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.app-card .prompt { margin: 2rem 0 .75rem; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 750; letter-spacing: -.045em; }
.translation { border-top: 1px solid rgba(255,255,255,.25); padding-top: 1rem; color: #d9e9e1; }
.card-actions { display: flex; gap: .5rem; margin-top: 2rem; }
.card-actions span { background: #e7f1eb; color: #16433d; border-radius: .4rem; padding: .35rem .55rem; font-weight: 700; font-size: .8rem; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.tint { background: var(--wash); }
.section-intro { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 2.75rem; }
.section-intro p { max-width: 35rem; color: var(--muted); margin: .4rem 0 0; }
.feature-grid, .two-column, .updates { display: grid; gap: 1.25rem; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.two-column { grid-template-columns: repeat(2, 1fr); }
.updates { grid-template-columns: repeat(3, 1fr); }
.feature, .update, .info-card { border: 1px solid var(--line); background: var(--paper); padding: 1.5rem; border-radius: .8rem; }
.feature p, .update p, .info-card p { color: var(--muted); margin: .7rem 0 0; }
.number { color: var(--coral); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.update time { font-size: .78rem; color: var(--green); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.path-link { color: var(--green); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.callout { border-left: 5px solid var(--coral); padding: .5rem 0 .5rem 1.25rem; font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 650; letter-spacing: -.035em; max-width: 46rem; }
.closing { background: var(--green); color: white; }
.closing h2 { max-width: 14ch; }
.closing p { color: #d3e5dc; max-width: 39rem; font-size: 1.08rem; }
.closing .button { background: white; color: var(--green); border-color: white; }
.closing .button.secondary { background: transparent; color: white; }

.page-hero { padding: clamp(3.8rem, 9vw, 6.6rem) 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 44rem; color: var(--muted); font-size: 1.12rem; margin: 1.25rem 0 0; }
.reading { max-width: 47rem; }
.reading p { font-size: 1.05rem; color: #45535c; }
.project-list { list-style: none; padding: 0; margin: 2.3rem 0 0; border-top: 1px solid var(--line); }
.project-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.project-list time { color: var(--green); font-size: .85rem; font-weight: 800; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.principles div { padding: 1.5rem; border-bottom: 1px solid var(--line); }
.principles div:nth-child(odd) { border-right: 1px solid var(--line); }
.principles div:nth-last-child(-n + 2) { border-bottom: none; }
.principles p { margin-bottom: 0; color: var(--muted); }

.typing-shell { max-width: 680px; margin: 0 auto; }
.typing-panel { border: 1px solid var(--line); background: white; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1rem; }
.typing-panel .empty { padding: 1.5rem; background: var(--wash); border-radius: .5rem; color: #4e5b63; }
.tool-note { font-size: .9rem; color: var(--muted); margin-top: 1.2rem; }
.store-launch { display: grid; grid-template-columns: 150px 1fr; gap: 1.7rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.8rem); border: 1px solid var(--line); border-radius: 1rem; background: white; }
.store-icon { width: 150px; border-radius: 1.55rem; box-shadow: 0 14px 35px rgba(17,40,64,.2); }
.store-launch h3 { font-size: 1.8rem; }
.store-launch p { color: var(--muted); max-width: 42rem; }
.store-options { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.store-option { display: inline-flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: .45rem; padding: .65rem .8rem; min-width: 155px; color: var(--ink); text-decoration: none; background: var(--wash); }
.store-option strong { font-size: .9rem; }
.store-option small { color: var(--muted); font-size: .73rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
label { display: grid; gap: .45rem; color: #35434c; font-size: .92rem; font-weight: 700; }
label.full { grid-column: 1 / -1; }
input, textarea, select { font: inherit; border: 1px solid #bfc3bd; border-radius: .35rem; padding: .75rem; background: white; color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
.form-status { min-height: 1.5rem; color: var(--green); font-size: .9rem; font-weight: 700; }
.notice { margin-top: 1.25rem; font-size: .88rem; color: var(--muted); }

.site-footer { background: #152722; color: #e7eee9; padding: 3rem 0 2rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-grid p { max-width: 28rem; color: #b8c8c0; margin: .7rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem 1rem; }
.footer-nav a { color: #e7eee9; text-decoration: none; font-size: .9rem; }
.footer-bottom { border-top: 1px solid #385048; margin-top: 2.5rem; padding-top: 1.25rem; color: #9db2a8; font-size: .82rem; }

@media (max-width: 760px) {
  .header-inner { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 1rem 1.25rem 1.25rem; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav .store-link { text-align: center; }
  .hero-grid, .feature-grid, .two-column, .updates { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  h1 { max-width: 11ch; }
  .app-card { max-width: 360px; margin: 1rem auto; }
  .section-intro, .footer-grid { display: block; }
  .section-intro p { margin-top: 1rem; }
  .footer-nav { justify-content: flex-start; margin-top: 2rem; }
  .project-list li { grid-template-columns: 1fr; gap: .35rem; }
  .principles { grid-template-columns: 1fr; }
  .principles div:nth-child(odd) { border-right: none; }
  .principles div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .store-launch { grid-template-columns: 1fr; }
  .store-icon { width: 110px; }
}
