/* Sanapsis site styles. Layout: white "floating page" on navy, footer on navy. */
/* Fonts are served from this site (not Google) so visitors' IP addresses are not sent to Google. SIL OFL 1.1, licences in assets/fonts/. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/open-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/open-sans-latin-700-normal.woff2) format("woff2"); }
:root {
  --navy: #3d4466;
  --ink: #2b2b2b;
  --text: #343434;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --link: #2c3150;
  --pro: #f08605;
  --pro-button: #f58308;  /* sampled from the SanapsisPro main menu screenshot (Nana, 12 Oct 2026); was #a85e04 */
  --pro-cream: #f3ebd6;   /* cream frame of the same screenshot */
  --pro-tint: #fdf1e3;
  --plus: #123966;
  --plus-tint: #e8edf5;
  --heading-font: Montserrat, "Proxima Nova", sans-serif;
  --body-font: "Open Sans", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--navy); }
body {
  margin: 0;
  background: var(--navy);
  font-family: var(--body-font);
  color: var(--text);
  padding: 40px 16px 0;
}
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: #b35f00; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Page */
.page {
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}
.pad { padding-left: 56px; padding-right: 56px; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 56px;
}
.logo img { height: 44px; width: auto; display: block; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.main-nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.main-nav a[aria-current="page"] { color: var(--link); border-bottom: 2px solid var(--link); }
.main-nav a.nav-pro[aria-current="page"] { color: #b35f00; border-color: var(--pro); }
.main-nav a.nav-plus[aria-current="page"] { color: var(--plus); border-color: var(--plus); }
.lang-switch { display: flex; gap: 4px; border-left: 1px solid #ddd; padding-left: 20px; }
.lang-switch a { color: var(--muted); padding: 6px; }
.lang-switch a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; }

/* Type */
h1, h2, h3 { font-family: var(--heading-font); color: var(--ink); margin: 0; }
.page-title { font-weight: 400; font-size: 44px; }
.eyebrow { font-size: 14px; letter-spacing: 1px; color: var(--muted); }
.accent-line { width: 48px; height: 3px; background: var(--link); }
.accent-line.pro { background: var(--pro); }
.accent-line.plus { background: var(--plus); }
.lead { font-size: 18px; line-height: 1.65; margin: 0; }
.body-text p, .body-text { font-size: 17px; line-height: 1.7; }
.body-text p { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 18px; }

/* Placeholder text that still needs writing */
.ph { background: #fff4c2; color: #5a4a00; padding: 0 4px; border-radius: 3px; }

/* Hero image */
.hero { display: block; width: 100%; height: 400px; object-fit: cover; border-radius: 8px; }
.hero.short { height: 360px; }

/* Home */
.home-intro { padding-top: 64px; padding-bottom: 16px; }
.home-intro h1 { font-weight: 400; font-size: 38px; line-height: 1.2; }
.home-intro p { margin: 20px 0 0; font-size: 18px; line-height: 1.6; }
.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 80px;
  align-items: stretch;
}
.appcard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}
.appcard:hover { color: var(--text); box-shadow: 0 8px 22px rgba(0,0,0,0.12); transform: translateY(-2px); }
.appcard.pro { border-top: 4px solid var(--pro); }
.appcard.plus { border-top: 4px solid var(--plus); }
.appcard.pro:hover, .appcard.pro:focus-visible { background: var(--pro-tint); }
.appcard.plus:hover, .appcard.plus:focus-visible { background: var(--plus-tint); }
.appcard .name { font-family: var(--heading-font); font-weight: 600; font-size: 30px; color: var(--ink); }
.appcard .desc { font-size: 17px; line-height: 1.65; }
.appcard img { margin-top: 8px; width: 100%; height: 280px; object-fit: cover; border-radius: 8px; }
.appcard .more { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 16px; color: var(--link); }

/* App pages */
.app-intro { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 64px; padding-bottom: 56px; align-items: stretch; }
.app-intro .text { flex: 1 1 420px; }
.app-intro.pro .text { flex: 0 1 420px; }
.app-intro.pro .shots { flex: 1 1 400px; display: flex; flex-direction: column; gap: 16px; }
.app-intro.plus .shots { flex: 0 1 340px; margin-left: auto; display: flex; flex-direction: column; justify-content: center; }
.app-intro h1 { font-weight: 600; font-size: 44px; }
/* SanapsisPro: the heading sits above, so the screenshots start level with the text. */
.app-intro.pro { row-gap: 16px; }
.app-intro.pro .intro-head { flex: 1 1 100%; }
.app-intro.pro .shots { margin-top: 16px; }
@media (min-width: 900px) {
  .app-intro.pro { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .app-intro.pro .intro-head { grid-column: 1; grid-row: 1; }
  .app-intro.pro .text { grid-column: 1; grid-row: 2; }
  /* Screenshots span the heading and text rows and are centred between the top of the heading and the bottom of the Get box (Nana, 12 Oct 2026). */
  .app-intro.pro .shots { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; }
}
.shot { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.get-box {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); border-radius: 12px; padding: 28px;
  margin-top: 16px; max-width: 460px;
}
.get-box .title { font-family: var(--heading-font); font-weight: 600; font-size: 18px; color: var(--ink); }
.get-box .note { font-size: 15px; line-height: 1.6; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-block;
  text-align: center;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 6px;
  color: #fff;
  background: var(--link);
  border: none;
  cursor: pointer;
}
.button:hover { color: #fff; filter: brightness(1.1); }
/* White text on the light orange is 2.6:1 contrast, below WCAG AA; Nana chose it knowingly (12 Oct 2026). */
.button.pro { background: var(--pro-button); }
.button.plus { background: var(--plus); flex: 1 1 140px; }
.text-link { font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--link); padding-bottom: 2px; align-self: center; }
.text-link.pro { border-color: var(--pro); }

.section-title { font-weight: 600; font-size: 28px; padding-top: 16px; }
.tiles { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 48px; }
.tiles.categories { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 32px; padding-bottom: 56px; }
.tiles.areas { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--pro); padding-top: 18px; }
.tile h3 { font-weight: 600; font-size: 20px; }
.tile p { margin: 0; font-size: 16px; line-height: 1.6; }
.video-slot { height: 170px; background: #f4f4f4; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.area { border-top: 4px solid; padding-top: 16px; font-family: var(--heading-font); font-weight: 600; font-size: 20px; color: var(--ink); }
.area.speaking { border-color: #78c870; }
.area.listening { border-color: #d36060; }
.area.reading { border-color: #6890b8; }
.area.writing { border-color: #f9a838; }

.notice { margin: 0 56px 64px; border-radius: 12px; padding: 28px 32px; display: flex; flex-direction: column; gap: 8px; }
.notice.pro { background: var(--pro-tint); }
.notice.plus { background: var(--plus-tint); }
.notice strong { font-family: var(--heading-font); font-size: 16px; color: var(--ink); }
.notice p { margin: 0; font-size: 16px; line-height: 1.6; }

/* Generic content pages */
.page-head { padding-top: 32px; }
.two-col { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 40px; padding-bottom: 56px; align-items: flex-start; }
.two-col .main { flex: 1 1 520px; }
.two-col .side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
/* About: the photo floats right of the text, starting at the first paragraph; text wraps under it. */
.about-body { padding-top: 40px; }
.about-hi { margin-bottom: 18px; }
.about-text p { margin: 0 0 18px; }
.about-text::after { content: ""; display: block; clear: both; }
.about-photo { float: right; width: 40%; height: 420px; object-fit: cover; border-radius: 8px; margin: 6px 0 18px 48px; }
@media (max-width: 760px) {
  .about-photo { float: none; display: block; width: 100%; height: 260px; margin: 0 0 20px; }
}
.cta-row { padding-bottom: 64px; display: flex; }

.card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-weight: 600; font-size: 20px; }
.card a { font-size: 16px; font-weight: 600; }

/* Form */
.form { display: flex; flex-direction: column; gap: 18px; }
.form h2 { font-weight: 600; font-size: 26px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.form input[type="file"] { border: none; padding: 0; font-size: 15px; }
.form .button { align-self: flex-start; }

.faq { margin: 0 56px; padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.faq h2 { font-weight: 600; font-size: 26px; }
/* FAQ chat card: mock-up of the stand.chat box until it is configured. */
.chat-card { max-width: 560px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.chat-head { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 14px 18px; font-family: var(--heading-font); font-weight: 600; font-size: 16px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.chat-body { padding: 22px 18px; background: #fafafa; min-height: 120px; }
.bubble { margin: 0; max-width: 85%; background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: 16px; line-height: 1.5; }
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #ccc; border-radius: 999px; background: #fff; }
.chat-input button { flex: 0 0 44px; height: 44px; border: none; border-radius: 50%; background: var(--link); display: flex; align-items: center; justify-content: center; }
.chat-note { margin: 0; font-size: 13px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-size: 17px; font-weight: 600; cursor: pointer; }
.faq details p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; }

/* Blog */
.blog-head { padding-top: 32px; padding-bottom: 8px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.blog-name { margin: 0; font-family: var(--heading-font); font-size: 20px; color: var(--muted); }
.blog-lang { margin: -12px 0 0; font-size: 15px; color: var(--muted); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.chip { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }
.chip.active { background: var(--link); color: #fff; border-color: var(--link); }
.chip.pro { border-color: var(--pro); }
.chip.plus { border-color: var(--plus); }
.posts { display: flex; flex-direction: column; padding: 8px 40px 56px; }
.post { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 24px 16px; border-bottom: 1px solid #eee; text-decoration: none; color: var(--text); border-radius: 8px; transition: background-color .15s ease; }
.post:hover { background: #f6f6f6; color: var(--text); }
.post .thumb { flex: 0 0 220px; width: 220px; height: auto; aspect-ratio: 800 / 582; object-fit: cover; background: #f4f4f4; border-radius: 8px; border: 1px solid var(--line); }
.post .info { flex: 1 1 400px; display: flex; flex-direction: column; gap: 8px; }
.post .meta { font-size: 14px; color: var(--muted); }
.tag { border-bottom: 2px solid var(--pro); }
.tag.plus { border-color: var(--plus); }
.post .thumb.empty { display: flex; align-items: center; justify-content: center; }
.post .thumb.empty img { width: 48px; height: auto; opacity: .55; }
.post .title { font-family: var(--heading-font); font-weight: 600; font-size: 22px; color: var(--ink); }
.post .excerpt { font-size: 16px; line-height: 1.6; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 32px 16px 0; font-size: 15px; }
.pager .count { color: var(--muted); }

/* Blog post */
.blog-post { padding-top: 32px; padding-bottom: 56px; }
.blog-post .back { margin: 0 0 24px; }
.blog-post h1 { font-weight: 600; font-size: 38px; line-height: 1.2; }
.blog-post .meta { margin: 12px 0 32px; font-size: 15px; color: var(--muted); }
.post-body { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote { margin: 0 0 1.1em; }
.post-body h2, .post-body h3, .post-body h4 { margin: 1.6em 0 .6em; line-height: 1.3; }
.post-body h2 { font-size: 26px; }
.post-body h3 { font-size: 21px; }
.post-body h4 { font-size: 18px; }
.post-body a { color: var(--link); }
.post-body img { display: block; max-width: 100%; height: auto; margin: 8px auto 1.4em; border-radius: 10px; border: 1px solid var(--line); }
.post-body figure { margin: 0 0 1.4em; }
.post-body figure img { margin-bottom: 8px; }
.post-body figcaption, .post-body figcaption p { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.post-body blockquote { border-left: 4px solid var(--pro); padding-left: 16px; font-style: italic; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; font-family: var(--heading-font); font-weight: 600; color: var(--ink); }
.post-nav a span { font-family: var(--body-font); font-weight: 400; font-size: 14px; color: var(--muted); }
.post-nav .older { text-align: right; }

/* Privacy */
.legal { padding-top: 32px; padding-bottom: 64px; }
.legal h2 { font-weight: 600; font-size: 20px; margin-top: 32px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal .legal-date { color: var(--muted); font-size: 14px; margin-top: -8px; }

/* Footer */
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 8px 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #fff;
  font-size: 14px;
}
.site-footer .brand { height: 32px; width: auto; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--heading-font); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.footer-nav a { color: #fff; text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }

/* Phone */
@media (max-width: 760px) {
  .blog-post h1 { font-size: 30px; }
  body { padding: 12px 10px 0; }
  .page { border-radius: 14px; }
  .pad, .site-header { padding-left: 20px; padding-right: 20px; }
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .logo img { height: 36px; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: none; background: transparent; padding: 0; cursor: pointer;
  }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; font-size: 14px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .lang-switch { border-left: none; padding-left: 0; padding-top: 8px; }
  .hero, .hero.short { height: 220px; }
  .home-intro { padding-top: 28px; }
  .home-intro h1 { font-size: 28px; line-height: 1.25; }
  .app-cards { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; padding-bottom: 32px; }
  .appcard { padding: 20px; }
  .appcard .name { font-size: 24px; }
  .appcard img { height: 180px; }
  .app-intro { padding-top: 32px; gap: 32px; }
  .app-intro.plus .shots { margin-left: 0; }
  .app-intro h1, .page-title { font-size: 32px; }
  .notice, .faq { margin-left: 20px; margin-right: 20px; }
  .posts { padding-left: 4px; padding-right: 4px; }
  .post .thumb { flex-basis: 100%; width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 28px 8px 32px; }
  .footer-nav { flex-direction: column; gap: 0; }
  .footer-nav a { padding: 10px 0; }
  .site-footer .brand { align-self: flex-end; }
}

/* Video that starts as a still image and loads the Vimeo player when tapped */
.video-poster { position: relative; display: block; width: 100%; padding: 0; border: none; background: none; cursor: pointer; border-radius: 10px; }
.video-poster .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; background: rgba(18, 57, 102, 0.88);
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  border: 3px solid #ffffff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); transition: transform .15s ease;
}
.video-poster:hover .play { transform: translate(-50%, -50%) scale(1.08); }
/* SanapsisPro category videos: Vimeo thumbnail cropped to the 4:3 tile, white outline play button (Nana, 12 Oct 2026) */
.video-poster.cat-video { aspect-ratio: 4 / 3; background: var(--pro-tint); border: 1px solid var(--line); }
.video-poster.cat-video .play { width: 60px; height: 60px; background: transparent; border: 2px solid #ffffff; box-shadow: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); }
.video-poster.cat-video { overflow: hidden; }
.video-poster.cat-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-box { aspect-ratio: 4 / 3; background: var(--pro-cream); border: 1px solid var(--line); border-radius: 10px; }
.video-box.text-box { box-sizing: border-box; padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.key-wrap { padding-top: 24px; }
.key-video { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; border-top: 3px solid var(--pro); padding-top: 18px; margin-bottom: 8px; }
.key-video .video-poster { flex: 2 1 560px; width: auto; }
.key-video .key-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.key-video h3 { font-weight: 600; font-size: 20px; }
.key-video p { margin: 0; font-size: 16px; line-height: 1.6; }
.video-frame { width: 100%; aspect-ratio: 2048 / 2670; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
