/* Torick's Language Trainer apps — the apps' own colours (mint bar, dark green buttons, sage cards)
   with the company site's Inter (torickenterprises.com). */
:root {
  --mint: #8af8c8;
  --mint-soft: #d8fbec;
  --green: #006c4c;
  --green-dark: #004d36;
  --sage: #dce5dd;
  --paper: #fbfdf9;
  --ink: #13261e;
  --muted: #4f625a;
  --line: #d3ddd6;
  --sky: #c2e8fd;
  --radius: 18px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(19, 38, 30, .06), 0 8px 24px rgba(19, 38, 30, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 253, 249, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-mark { display: flex; }
.brand-mark span { width: 10px; height: 22px; border-radius: 3px; margin-right: 3px; }
.top nav { display: flex; gap: 24px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top nav a:hover { color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  transition: background .2s, transform .2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--mint-soft); }
.btn-soon { background: var(--sage); color: var(--muted); cursor: default; }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--mint); color: var(--green-dark); font-weight: 600; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; color: var(--muted); font-size: .95rem; }
.promises li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }

.phones { position: relative; height: 540px; max-width: 560px; justify-self: end; width: 100%; }
.phone {
  position: absolute; width: 230px; border-radius: 30px; overflow: hidden;
  border: 8px solid #10201a; background: #10201a; box-shadow: 0 30px 60px rgba(19, 38, 30, .25);
}
.phone img { width: 100%; height: auto; }
.phones .p1 { left: 4%; top: 60px; transform: rotate(-6deg); }
.phones .p2 { left: 50%; top: 0; z-index: 2; transform: translateX(-50%); }
.phones .p3 { right: 4%; top: 70px; transform: rotate(6deg); }

/* Sections */
section { padding: 72px 0; }
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Language cards */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green); }
.app-card header { display: flex; align-items: center; gap: 14px; }
.app-card .icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.app-card h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.app-card .sub { color: var(--muted); font-size: .9rem; }
.app-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--green-dark); }
.chip.grey { background: var(--sage); color: var(--muted); }
.app-card .more { font-weight: 600; color: var(--green); font-size: .95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.alt .feature { background: var(--paper); }
.feature .glyph {
  width: 44px; height: 44px; border-radius: 12px; background: var(--mint);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .97rem; }

/* Variants */
.variants { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.pair { display: flex; gap: 20px; justify-content: center; }
.pair figure { text-align: center; }
.pair .phone { position: static; width: 220px; }
.pair figcaption { margin-top: 12px; font-weight: 600; color: var(--muted); font-size: .9rem; }
.variant-list { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.variant-list li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.variant-list strong { display: block; }
.variant-list span { color: var(--muted); font-size: .95rem; }

/* Free and Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.plan.pro { border: 2px solid var(--green); position: relative; }
.plan.pro::before { content: "One-time purchase"; position: absolute; top: -13px; left: 26px; background: var(--green); color: #fff; font-size: .8rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan .price { color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; color: var(--ink); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.platform h3 { margin-bottom: 6px; }
.platform p { color: var(--muted); font-size: .97rem; }
.status { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.status.live { background: var(--mint); color: var(--green-dark); }
.status.soon { background: var(--sky); color: #0b4a6b; }

/* App page */
.app-hero { padding: 56px 0 24px; }
.app-hero .wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.app-hero .icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: var(--shadow); }
.app-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1; }
.app-hero p { color: var(--muted); font-size: 1.15rem; margin: 8px 0 16px; max-width: 40em; }
.app-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.crumbs { font-size: .9rem; margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.gallery {
  display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
}
.gallery figure { flex: 0 0 230px; scroll-snap-align: start; }
.gallery .phone { position: static; width: 230px; border-width: 6px; border-radius: 26px; box-shadow: var(--shadow); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.fact b { display: block; font-size: 1.8rem; letter-spacing: -.02em; color: var(--green); line-height: 1.2; }
.fact span { color: var(--muted); font-size: .9rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tenses { list-style: none; display: grid; gap: 8px; }
.tenses li { display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.tenses .chip { align-self: center; }
.notes { list-style: none; display: grid; gap: 12px; }
.notes li { padding-left: 28px; position: relative; }
.notes li::before { content: "●"; position: absolute; left: 6px; color: var(--mint); text-shadow: 0 0 0 var(--green); font-size: .8rem; top: 3px; }
h2.small { font-size: 1.4rem; margin-bottom: 16px; letter-spacing: -.01em; }

/* Footer */
footer { background: var(--ink); color: #c9d6cf; padding: 48px 0 32px; margin-top: 24px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; margin-bottom: 10px; font-size: 1rem; }
footer a { color: #c9d6cf; text-decoration: none; }
footer a:hover { color: var(--mint); }
footer ul { list-style: none; display: grid; gap: 6px; font-size: .95rem; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid #2a4237; padding-top: 20px; font-size: .85rem; color: #8fa59a; }

/* Privacy policy */
.policy { max-width: 780px; padding: 48px 24px 64px; margin: 0 auto; }
.policy h1 { font-size: 2.2rem; letter-spacing: -.02em; margin-bottom: 6px; }
.policy h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.policy p, .policy li { color: #2c3d36; }
.policy ul { padding-left: 22px; margin: 8px 0; }
.policy .updated { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 900px) {
  .hero .wrap, .variants, .two { grid-template-columns: 1fr; }
  .phones { height: 480px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phone { width: 200px; }
  .apps, .features, .platforms { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .top nav { display: none; }
  .apps, .features, .platforms, .plans { grid-template-columns: 1fr; }
  .phones { height: 400px; }
  .phone { width: 160px; border-width: 6px; border-radius: 22px; }
  .pair .phone { width: 150px; }
  section { padding: 56px 0; }
}
.policy .highlight, .policy .contact-info { background: var(--mint-soft); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
