/* QRMyCode site — "Lente · Oceano & Menta": oceano ink, mint details,
 * teal action, paper background. Light first, dark follows the system. */

:root {
  --ocean: #0B4F4A;
  --action: #0D9488;
  --mint: #A7F3D0;
  --paper: #F2FBF8;
  --surface: #FFFFFF;
  --ink: #0B4F4A;
  --ink-2: #46625E;
  --line: #D5EDE6;
  --radius: 22px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --action: #2DD4BF;
    --paper: #06211F;
    --surface: #0B3330;
    --ink: #EAF7F3;
    --ink-2: #9CC3BC;
    --line: #18504B;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--action); }
img { max-width: 100%; height: auto; }

h1, h2 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 850; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--action); margin: 0 0 12px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 36em; }
.note { color: var(--ink-2); font-size: 15px; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 20px; }
@media (prefers-color-scheme: dark) { .brand img, .scan-art img { filter: brightness(0) invert(0.92) sepia(0.3) hue-rotate(110deg); } }
.nav-cta {
  background: var(--action); color: #fff; text-decoration: none; font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .nav-cta { color: var(--ocean); } }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 40px 0 72px;
}
.hero-art { margin: 0; }
.hero-art img { border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(11, 79, 74, 0.45); }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.badges img { height: 50px; width: auto; }

.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section--narrow > * { max-width: 760px; }

.steps ol { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: grid; gap: 8px; counter-increment: step;
}
.steps li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint); color: var(--ocean); font-weight: 900;
}
.steps span { color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--flip > :first-child { order: 2; }

.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card-grid span {
  aspect-ratio: 1.4; border-radius: var(--radius); display: grid; place-items: center;
  font-weight: 900; font-size: 24px; background: var(--surface); border: 1px solid var(--line);
}
.card-grid span:first-child { background: var(--ocean); color: #fff; border-color: var(--ocean); }

.scan-art {
  aspect-ratio: 1.3; border-radius: var(--radius); background: var(--ocean);
  display: grid; place-items: center;
}
.scan-art img { width: 40%; filter: brightness(0) invert(0.92) sepia(0.3) hue-rotate(110deg); }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%230B4F4A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checks--two { grid-template-columns: 1fr 1fr; column-gap: 32px; }

.types { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.types li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 650; }
.types li:first-child { background: var(--ocean); color: #fff; border-color: var(--ocean); }

.pro { text-align: left; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; }
details p { color: var(--ink-2); margin: 10px 0 0; }

.doc { max-width: 760px; padding-bottom: 48px; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc li { margin-bottom: 8px; }

.foot { max-width: var(--max); margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; }
.lang-switch a { color: var(--ink-2); text-decoration: none; }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 700; }

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

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; gap: 32px; }
  .split--flip > :first-child { order: 0; }
  .steps ol, .checks--two { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; }
}

/* CJK headlines break at phrase boundaries, not mid-word. */
:lang(ja) :is(h1, h2), :lang(ko) :is(h1, h2), :lang(zh-Hans) :is(h1, h2), :lang(zh-Hant) :is(h1, h2) { word-break: auto-phrase; }
