/*
 * Sottovo Note website. Colours come from app/src/main/java/.../ui/theme/Color.kt.
 * The Content-Security-Policy allows styles from this file only: no style="" attributes, no <style>.
 * Contrast: orange #FF6200 on white is 3.0:1, so it is used only for large text, icons and bold
 * labels of 18.66px or more; small orange text uses #C24A00 (4.9:1).
 */
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #FF6200;
  --orange-hover: #E55800;
  --orange-text: #C24A00;
  --orange-pale: #FFF0E6;
  --orange-line: #FFD9C2;
  --ink: #121212;
  --text: #4A4A4A;
  --muted: #6B6B6B;
  --bg-alt: #F6F8FC;
  --border: #E3E6EB;
  --white: #FFFFFF;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 8px 24px rgba(18, 18, 18, 0.06);
  --shadow-lift: 0 1px 2px rgba(18, 18, 18, 0.04), 0 14px 32px rgba(18, 18, 18, 0.1);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.2; }
p { margin: 0; }
a { color: var(--orange-text); }
ul { margin: 0; padding: 0; list-style: none; }

a:focus-visible, summary:focus-visible, .shots:focus-visible {
  outline: 3px solid var(--orange-text);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id] { scroll-margin-top: 84px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 820px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { top: 12px; }

.accent { font-family: var(--serif); font-weight: 700; color: var(--orange); }
.icon { width: 24px; height: 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(12px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}
.brand-logo { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: none; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--text); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--orange-text); }
.header-inner > .button { margin-left: auto; }
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .header-inner > .button { margin-left: 0; }
}

/* Buttons: white on orange is 3.0:1, so labels are 19px bold (large text). */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--orange-hover); }

/* The badge PNG carries Google's clear space inside it (about 6% of its width on each side). */
.play-badge { display: inline-block; margin-left: -11px; }
.play-badge img { width: auto; height: 72px; }

/* Hero */
.hero {
  overflow: hidden;
  padding: 48px 0 64px;
  background: linear-gradient(180deg, var(--orange-pale) 0%, var(--white) 100%);
}
.hero-inner { display: grid; gap: 56px; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--orange-line);
  border-radius: 999px;
  background: var(--white);
  color: var(--orange-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill .icon { width: 16px; height: 16px; }
.hero h1 { margin-top: 20px; font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -0.02em; }
.lead { max-width: 34em; margin-top: 20px; font-size: 1.125rem; }
.hero .play-badge { margin-top: 24px; }
.hero-note { margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }

.hero-visual { position: relative; justify-self: center; width: min(320px, 78vw); }
.phone {
  position: relative;
  padding: 10px;
  border-radius: 44px;
  background: #1A1A1A;
  box-shadow: 0 30px 60px rgba(18, 18, 18, 0.18), 0 8px 20px rgba(18, 18, 18, 0.1);
}
.phone-screen { width: 100%; border-radius: 34px; }
.phone::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  height: 90px;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(to bottom, rgba(246, 248, 252, 0), #F6F8FC 85%);
}
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip .icon { width: 18px; height: 18px; }
.chip-summary { top: 20%; left: -6%; }
.chip-chat { top: 48%; right: -6%; }
.chip-lang { bottom: 14%; left: -4%; }

@media (min-width: 1024px) {
  .hero { padding: 72px 0 96px; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .chip-summary { left: -22%; }
  .chip-chat { right: -16%; }
  .chip-lang { left: -14%; }
}

/* Sections */
.section { padding: 72px 0; }
.section-tight { padding-top: 24px; }
@media (min-width: 1024px) { .section { padding: 96px 0; } .section-tight { padding-top: 32px; } }
.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
  text-align: center;
}
.section-title + * { margin-top: 40px; }

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card h3 { margin-top: 18px; font-size: 1.1875rem; }
.card p { margin-top: 8px; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange-pale);
}

.feature-grid, .audience-grid, .data-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .feature-grid, .data-grid { grid-template-columns: repeat(2, 1fr); } }
/* Nine features in two columns would leave the last one alone on its row: let it span both. */
@media (min-width: 640px) and (max-width: 1023px) {
  .feature-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 768px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .data-grid { grid-template-columns: repeat(4, 1fr); }
}

.audience { text-align: center; }
.audience .feature-icon { width: 64px; height: 64px; border-radius: 50%; }
.audience .icon { width: 28px; height: 28px; }

/* Your data */
.data-band { padding: 72px 0; background: var(--bg-alt); }
.data-grid { gap: 28px; }
.data-item .icon { width: 28px; height: 28px; }
.data-item h3 { margin-top: 14px; font-size: 1.0625rem; }
.data-item p { margin-top: 6px; font-size: 0.9375rem; }
.data-link { margin-top: 36px; font-weight: 600; text-align: center; }

/* Screenshots */
.shots-panel { padding: 48px 0 32px; border-radius: 32px; background: var(--orange-pale); }
.shots-panel .section-title { padding: 0 16px; }
.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 24px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #FFB98F transparent;
  scrollbar-width: thin;
}
.shots li { flex: 0 0 auto; width: min(260px, 70vw); scroll-snap-align: center; }
.shots img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(18, 18, 18, 0.12); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-pale);
  color: var(--orange-text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; }

/* Closing band and waves */
.wave { display: block; height: 64px; }
.wave svg { display: block; width: 100%; height: 100%; }
.wave-orange { background: var(--white); color: var(--orange); }
.wave-ink { background: var(--orange); color: var(--ink); }
.cta { padding: 16px 0 40px; background: var(--orange); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); font-family: var(--serif); font-size: clamp(1.875rem, 4vw, 2.75rem); }
.cta p { margin-top: 12px; font-size: 1.1875rem; font-weight: 700; }
.cta .play-badge { margin: 16px 0 0; }

/* Footer: #C9C9C9 on #121212 is 12:1, #A3A3A3 is 7.4:1. */
.site-footer { padding: 40px 0 32px; background: var(--ink); color: #C9C9C9; font-size: 0.9375rem; }
.footer-inner { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }
.brand-light { color: var(--white); }
.footer-brand p { margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #2E2E2E;
  color: #A3A3A3;
  font-size: 0.8125rem;
}

/* Footer language list: every page links to every language, each in its own name. */
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 0.875rem; }
.footer-langs a { color: #C9C9C9; text-decoration: none; }
.footer-langs a:hover { color: var(--white); text-decoration: underline; }
.footer-langs a[aria-current="page"] { color: var(--white); font-weight: 700; }

/* Playfair Display has Latin letters only, so these scripts keep the system sans-serif. */
:lang(ar) .accent, :lang(hi) .accent, :lang(ja) .accent, :lang(ko) .accent, :lang(zh-Hans) .accent,
:lang(ar) .cta h2, :lang(hi) .cta h2, :lang(ja) .cta h2, :lang(ko) .cta h2, :lang(zh-Hans) .cta h2 { font-family: var(--sans); }

/* Arabic and Devanagari letters join up, so letter-spacing would pull words apart. */
:lang(ar) .pill, :lang(ar) .hero h1, :lang(ar) .section-title,
:lang(hi) .pill, :lang(hi) .hero h1, :lang(hi) .section-title { letter-spacing: 0; }

/* Right to left (Arabic): mirror the rules above that use a physical left or right. */
[dir="rtl"] .skip-link { right: 16px; left: auto; }
[dir="rtl"] .site-nav { margin-right: auto; margin-left: 0; }
[dir="rtl"] .header-inner > .button { margin-right: auto; margin-left: 0; }
[dir="rtl"] .play-badge { margin-right: -11px; margin-left: 0; }
[dir="rtl"] .chip-summary { right: -6%; left: auto; }
[dir="rtl"] .chip-chat { left: -6%; right: auto; }
[dir="rtl"] .chip-lang { right: -4%; left: auto; }
/* "© 2026 Tornado Tech." is Latin text: keep its order, aligned with the Arabic lines. */
[dir="rtl"] .footer-legal p:first-child { direction: ltr; text-align: right; }
@media (min-width: 768px) {
  [dir="rtl"] .header-inner > .button { margin-right: 0; }
}
@media (min-width: 1024px) {
  [dir="rtl"] .chip-summary { right: -22%; }
  [dir="rtl"] .chip-chat { left: -16%; }
  [dir="rtl"] .chip-lang { right: -14%; }
}

/* 404 */
.not-found { padding: 120px 0; text-align: center; }
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); }
.not-found p { margin-top: 16px; }
.not-found .button { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card:hover { transform: none; }
}
