:root {
  color-scheme: light;
  --paper: #f8f1e8;
  --paper-deep: #ecdfd0;
  --ink: #101827;
  --muted: #56606d;
  --teal: #0d887e;
  --teal-dark: #07665f;
  --orange: #cf681d;
  --line: rgba(16, 24, 39, 0.15);
  --white: #fffdf9;
  --shadow: 0 24px 70px rgba(30, 38, 48, 0.15);
  --radius: 28px;
  --max: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 26px;
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; box-shadow: 0 5px 18px rgba(24, 31, 86, 0.24); }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { text-decoration: none; font-weight: 700; font-size: .9rem; }
.site-header nav a:not(.nav-cta):hover { color: var(--teal-dark); }
.nav-cta { padding: 10px 16px; color: #fff; background: var(--ink); border-radius: 999px; }
.qr-download { position: relative; display: inline-flex; z-index: 30; }
.qr-popup { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  .qr-popup {
    display: grid;
    position: absolute;
    right: 0;
    width: 196px;
    padding: 13px;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: var(--white);
    box-shadow: 0 22px 60px rgba(30,38,48,.22);
    text-align: center;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .qr-popup-up { bottom: calc(100% + 13px); transform: translateY(7px) scale(.96); transform-origin: bottom right; }
  .qr-popup-down { top: calc(100% + 13px); transform: translateY(-7px) scale(.96); transform-origin: top right; }
  .qr-download:hover .qr-popup,
  .qr-download:focus-within .qr-popup { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .qr-popup img { width: 100%; height: auto; border: 1px solid rgba(16,24,39,.08); border-radius: 12px; background: #fff; }
  .qr-popup p { margin: 0; color: var(--muted); font-size: .69rem; font-weight: 850; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
}
.locale-menu { position: relative; }
.locale-menu summary { cursor: pointer; list-style: none; font-size: .82rem; font-weight: 800; padding: 8px 0; }
.locale-menu summary::-webkit-details-marker { display: none; }
.locale-menu summary::after { content: " ↓"; color: var(--teal); }
.locale-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  max-height: 390px;
  overflow: auto;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.locale-menu a { display: block; padding: 8px 10px; border-radius: 9px; text-decoration: none; font-size: .9rem; }
.locale-menu a:hover, .locale-menu a[aria-current="page"] { background: rgba(13,136,126,.11); }

.hero {
  min-height: calc(100svh - 78px);
  padding: clamp(40px, 7vw, 96px) max(20px, calc((100vw - var(--max)) / 2));
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(207,104,29,.17), transparent 31%),
    radial-gradient(circle at 86% 30%, rgba(13,136,126,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.48), transparent 58%);
}
.hero-tool {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}
.hero-copy, .hero-workspace { position: relative; z-index: 1; }
.product-name {
  margin: 16px 0 20px;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}
.eyebrow {
  margin: 0;
  color: var(--teal-dark);
  font-weight: 850;
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -0.045em; }
h1 { margin: 0; font-size: clamp(3.3rem, 6.7vw, 7rem); max-width: 9ch; }
h2 { margin: 13px 0 20px; font-size: clamp(2.25rem, 4.6vw, 4.9rem); }
h3 { font-size: 1.35rem; }
.hero-lede { max-width: 31rem; margin: 27px 0 0; color: var(--muted); font-size: clamp(1.03rem, 1.5vw, 1.24rem); }

.metadata-tool {
  min-height: 500px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 34px;
  background: rgba(255,253,249,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: grid;
  position: relative;
  isolation: isolate;
  transition: border-color .2s ease, transform .25s ease;
}
.metadata-tool.is-dragging { border-color: var(--teal); transform: translateY(-4px); }
.tool-empty, .tool-working {
  min-height: 420px;
  border: 1.5px dashed rgba(13,136,126,.42);
  border-radius: 23px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
  background: rgba(13,136,126,.035);
}
.tool-empty h2 { margin: 20px 0 2px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.tool-empty > p { margin: 0 0 24px; color: var(--muted); }
.file-mark { width: 74px; height: 90px; position: relative; border: 2px solid var(--ink); border-radius: 12px; transform: rotate(-3deg); }
.file-mark::before { content: ""; position: absolute; width: 24px; height: 24px; right: -2px; top: -2px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--white); border-radius: 0 10px 0 8px; }
.file-mark span { position: absolute; left: 16px; right: 16px; height: 3px; border-radius: 3px; background: var(--teal); }
.file-mark span:nth-child(1) { top: 38px; }
.file-mark span:nth-child(2) { top: 50px; width: 29px; }
.file-mark span:nth-child(3) { top: 62px; width: 20px; background: var(--orange); }
.metadata-tool input[type="file"] { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 49px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-button:focus-visible, summary:focus-visible { outline: 3px solid rgba(207,104,29,.65); outline-offset: 3px; }
.button-primary { color: #fff; background: var(--teal); box-shadow: 0 9px 24px rgba(13,136,126,.23); }
.button-primary:hover { background: var(--teal-dark); }
.tool-assurance { display: grid; gap: 3px; margin-top: 25px; font-size: .75rem; color: var(--muted); }
.tool-assurance strong { color: var(--teal-dark); }
.tool-working { gap: 16px; }
.spinner { width: 42px; height: 42px; border: 4px solid rgba(13,136,126,.16); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
.tool-result { display: grid; grid-template-columns: minmax(145px, .78fr) minmax(230px, 1.22fr); gap: clamp(20px, 3vw, 34px); align-items: stretch; }
.result-preview { min-height: 420px; border-radius: 20px; overflow: hidden; position: relative; background: #111827; }
.result-preview img { width: 100%; height: 100%; object-fit: cover; }
.result-preview span { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; background: rgba(16,24,39,.8); color: white; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.result-copy { align-self: center; min-width: 0; }
.result-copy h2 { margin: 8px 0 16px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.finding-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.finding-list li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(8px); animation: finding-in .35s ease forwards; }
.finding-list li::before { content: "✓"; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--teal-dark); background: rgba(13,136,126,.12); font-weight: 900; }
.finding-list li > span { min-width: 0; line-height: 1.35; }
.finding-list small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.42; overflow-wrap: anywhere; white-space: normal; }
.retained-note { font-size: .73rem; color: var(--muted); margin: 14px 0; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.text-button { padding: 10px; border: 0; background: transparent; color: var(--ink); font-weight: 780; cursor: pointer; }
.tool-message { margin: 14px 3px 0; color: var(--muted); font-size: .78rem; }
.tool-message.is-error { color: #9b2f24; font-weight: 700; }

.signal-line {
  width: min(calc(100% - 40px), var(--max));
  margin: -17px auto 0;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.signal-line span { padding: 14px 28px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.signal-line span + span { border-left: 1px solid var(--line); }
.section-space { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding-block: clamp(86px, 12vw, 170px); }
.editorial-split { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(50px, 10vw, 150px); align-items: center; }
.phone-stage { height: min(72vw, 760px); overflow: hidden; border-radius: var(--radius); background: #f8ece1; box-shadow: var(--shadow); }
.phone-stage img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.editorial-copy > p:not(.eyebrow) { color: var(--muted); max-width: 36rem; font-size: 1.08rem; }
.plain-list { list-style: none; padding: 0; margin: 38px 0 0; }
.plain-list li { padding: 15px 0 15px 34px; border-top: 1px solid var(--line); position: relative; }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.plain-list li::before { content: ""; width: 12px; height: 12px; position: absolute; left: 1px; top: 22px; border-radius: 50%; background: var(--orange); }

.difference { border-top: 1px solid var(--line); }
.difference > div:first-child { display: grid; grid-template-columns: .45fr 1.55fr; align-items: start; }
.difference h2 { max-width: 12ch; }
.difference-row { display: grid; grid-template-columns: 1fr 1fr; margin-top: 50px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.difference-row article { padding: 34px 8vw 34px 0; }
.difference-row article + article { border-left: 1px solid var(--line); padding-left: 8vw; }
.difference-row span, .fact-lines span { color: var(--orange); font-size: .72rem; font-weight: 900; }
.difference-row h3 { margin: 16px 0 9px; }
.difference-row p { color: var(--muted); }
.text-link { display: inline-block; margin-top: 30px; color: var(--teal-dark); font-weight: 850; text-underline-offset: 5px; }

.app-section { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(50px, 9vw, 130px); align-items: center; }
.app-copy p:not(.eyebrow) { color: var(--muted); max-width: 34rem; margin-bottom: 28px; }
.app-shot { max-height: 640px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #e8f4f1; }
.app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.guide-hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0,.84fr) minmax(480px,1.16fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding: clamp(50px, 7vw, 94px) max(20px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(130deg, rgba(207,104,29,.1), transparent 45%), linear-gradient(310deg, rgba(13,136,126,.12), transparent 48%);
}
.guide-heading h1 { max-width: 10ch; margin-top: 20px; font-size: clamp(3rem, 5.8vw, 6.2rem); }
.guide-heading > p:not(.eyebrow) { max-width: 34rem; color: var(--muted); font-size: 1.08rem; }
.breadcrumb { display: inline-block; margin-top: 18px; color: var(--muted); font-size: .84rem; }
.answer-lede { display: grid; grid-template-columns: .42fr 1.1fr 1fr; gap: 40px; align-items: start; border-bottom: 1px solid var(--line); }
.answer-lede h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 4rem); }
.answer-lede > p:last-child { color: var(--muted); }
.fact-lines { padding-top: 0; }
.fact-lines > div { display: grid; grid-template-columns: 70px 1fr; gap: 25px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.fact-lines p { margin: 0; font-size: clamp(1.4rem, 2.7vw, 2.45rem); line-height: 1.15; letter-spacing: -.025em; }
.faq-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 9vw, 120px); align-items: start; }
.section-heading { position: sticky; top: 30px; }
.section-heading h2 { font-size: clamp(2.2rem, 4vw, 4.3rem); }
.section-heading > p:last-child { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 24px 42px 24px 0; font-weight: 830; position: relative; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; color: var(--teal); font-size: 1.5rem; top: 17px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -4px 0 24px; color: var(--muted); }
.guide-final { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.guide-final h2 { max-width: 12ch; }
.guide-final p:not(.eyebrow) { color: var(--muted); max-width: 37rem; }

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1.2fr .8fr auto;
  gap: 30px;
  align-items: end;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
}
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 4px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { text-underline-offset: 4px; }

.reveal { animation: rise-in .72s cubic-bezier(.2,.8,.2,1) both; }
.reveal-late { animation-delay: .12s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes finding-in { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero, .guide-hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding-top: 32px; }
  .hero-tool { gap: 48px; }
  .guide-hero { gap: 48px; }
  .editorial-split, .app-section, .faq-section { grid-template-columns: 1fr 1fr; gap: 50px; }
  .answer-lede { grid-template-columns: 1fr 1fr; }
  .answer-lede .eyebrow { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > p:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header { width: min(calc(100% - 28px), var(--max)); min-height: 68px; }
  .brand strong { font-size: .9rem; }
  .brand img { width: 32px; height: 32px; }
  .locale-menu summary { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero, .guide-hero { padding: 44px 14px 70px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.9rem); }
  .hero-lede { margin-top: 20px; }
  .metadata-tool { min-height: 460px; padding: 11px; border-radius: 24px; }
  .tool-empty, .tool-working { min-height: 430px; padding: 20px 14px; }
  .tool-result { grid-template-columns: 1fr; }
  .result-preview { min-height: 220px; max-height: 240px; }
  .result-copy { padding: 10px 5px 5px; }
  .tool-actions .button { width: 100%; }
  .text-button { width: 100%; }
  .signal-line { width: calc(100% - 28px); justify-content: stretch; overflow-x: auto; }
  .signal-line span { flex: 0 0 auto; padding: 12px 16px; }
  .section-space { width: calc(100% - 28px); padding-block: 84px; }
  .editorial-split, .app-section, .faq-section, .answer-lede { grid-template-columns: 1fr; }
  .phone-stage { height: 115vw; max-height: 680px; }
  .editorial-copy { order: -1; }
  .difference > div:first-child { grid-template-columns: 1fr; }
  .difference-row { grid-template-columns: 1fr; }
  .difference-row article { padding: 28px 0; }
  .difference-row article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .app-shot { max-height: 520px; }
  .guide-heading h1 { font-size: clamp(2.85rem, 14vw, 4.6rem); }
  .section-heading { position: static; }
  .guide-final { align-items: stretch; flex-direction: column; }
  .guide-final .qr-download { width: 100%; }
  .guide-final .button { width: 100%; }
  .site-footer { width: calc(100% - 28px); grid-template-columns: 1fr; align-items: start; }
  .site-footer > p:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
