/* Wordive AI — site styles.
   Colours mirror Theme.Palette in the app: yellow is a fill only, with dark
   "on accent" text; anything drawn on a neutral surface uses the ink colour. */

:root {
  --accent: #ffd23f;
  --accent-2: #ffbf1f;
  --on-accent: #231c05;
  --ink: #7a5800;
  --wash: rgba(255, 210, 63, 0.3);
  --ember: #9a3118;
  --success: #12643c;

  --bg: #fbf9f3;
  --surface: #ffffff;
  --surface-2: #f3efe3;
  --text: #1c1a14;
  --text-2: #5c584c;
  --line: rgba(35, 28, 5, 0.12);
  --shadow: 0 1px 2px rgba(35, 28, 5, 0.06), 0 12px 32px rgba(35, 28, 5, 0.08);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --column: 1080px;
  --prose: 720px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #f2c63d;
    --accent-2: #e3ae22;
    --ink: #f5d262;
    --wash: rgba(242, 198, 61, 0.18);
    --ember: #ff9478;
    --success: #4cd08a;

    --bg: #13110b;
    --surface: #1d1a12;
    --surface-2: #28241a;
    --text: #f4f1e8;
    --text-2: #b5af9e;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(35, 28, 5, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(35, 28, 5, 0.08);
}

@media (prefers-color-scheme: dark) {
  .page .site-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 640px) {
  .site-nav .nav-optional {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(35, 28, 5, 0.1);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero .lede {
  max-width: 34em;
  margin-top: 20px;
  font-size: clamp(18px, 2vw, 21px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-dark {
  background: var(--on-accent);
  color: #fff8dc;
}

.btn-dark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-dark[aria-disabled="true"] {
  cursor: default;
}

.btn-quiet {
  background: rgba(35, 28, 5, 0.1);
  color: var(--on-accent);
}

.btn-quiet:hover {
  background: rgba(35, 28, 5, 0.16);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 24px;
    padding-bottom: 56px;
  }
}

/* ---------- Phone mock ---------- */

.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  padding: 10px;
  border-radius: 48px;
  background: var(--on-accent);
  box-shadow: 0 30px 60px rgba(35, 28, 5, 0.35);
  transform: rotate(2deg);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 560px;
  padding: 26px 16px 18px;
  border-radius: 38px;
  background: var(--bg);
  color: var(--text);
}

.ps-top {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.ps-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--wash);
}

.ps-progress i {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.ps-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.ps-word {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ps-ipa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 15px;
}

.ps-ipa svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--wash);
  fill: var(--ink);
}

.ps-tr {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
}

.ps-ex {
  font-size: 14px;
  line-height: 1.45;
}

.ps-ex small {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 13px;
}

.ps-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ps-btn {
  padding: 10px 4px;
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
}

.ps-btn b {
  display: block;
  font-size: 13px;
}

.ps-btn small {
  color: var(--text-2);
  font-size: 11px;
}

.ps-btn.is-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
}

.ps-btn.is-primary small {
  color: inherit;
  opacity: 0.75;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface-2);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 19px;
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }
}

/* Languages */

.lang-strip {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.lang-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.lang-strip p {
  margin-right: 6px;
  color: var(--text-2);
  font-size: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
}

/* Features */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.card p {
  color: var(--text-2);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--wash);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-size: 19px;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.steps p {
  color: var(--text-2);
}

/* Screenshots */

.shots {
  display: flex;
  gap: 20px;
  margin: 0 -24px;
  padding: 8px 24px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shots img {
  flex: 0 0 auto;
  width: 250px;
  height: auto;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  scroll-snap-align: center;
}

/* Video */

.video-frame {
  overflow: hidden;
  max-width: 880px;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow);
}

.video-frame video,
.video-frame iframe {
  display: block;
  width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
}

.video-frame.is-portrait {
  max-width: 320px;
}

.video-frame.is-portrait video {
  aspect-ratio: 9 / 19.5;
}

.video-play {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

/* Privacy band */

.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.ticks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ticks li::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--success)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

@media (prefers-color-scheme: dark) {
  .ticks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313110b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  }
}

@media (max-width: 860px) {
  .privacy-band {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 820px;
}

.plan {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.plan.is-premium {
  box-shadow: var(--shadow), inset 0 0 0 2px var(--accent-2);
}

.plan h3 {
  font-size: 22px;
}

.plan .plan-sub {
  margin: 6px 0 20px;
  color: var(--text-2);
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.fineprint {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 14px;
}

/* FAQ */

.faq {
  max-width: var(--prose);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > *:not(summary) {
  margin-bottom: 14px;
  color: var(--text-2);
}

.faq details > *:last-child {
  margin-bottom: 22px;
}

.faq ol,
.faq ul {
  padding-left: 22px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: inherit;
}

.site-footer small {
  flex-basis: 100%;
  font-size: 13px;
}

/* ---------- Text pages (privacy, terms, support) ---------- */

.page-head {
  padding: 40px 0 8px;
}

.page-head h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
}

.page-head p {
  margin-top: 10px;
  color: var(--text-2);
}

.prose {
  max-width: var(--prose);
  padding-bottom: 80px;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 24px;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.callout {
  margin: 28px 0 8px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--wash);
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 8px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: 0;
}

.contact-card .muted {
  color: var(--text-2);
  font-size: 15px;
}

.center-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}

.center-page h1 {
  margin-bottom: 12px;
  font-size: 44px;
}

.center-page p {
  margin-bottom: 24px;
  color: var(--text-2);
}

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