/* TagForge — nfc.hyperse.co */
:root {
  --ink: #1D1B18; --ink-2: #26221F; --night: #141210;
  --paper: #F4F1EA; --paper-2: #EAE4D8; --card: #FFFDF9;
  --text: #1D1B18; --text-soft: #5F594F; --line: rgba(29, 27, 24, .12);
  --copper: #E58A55; --copper-hi: #F6AB75; --copper-deep: #B4542A; --copper-dark: #7A3214; --teal: #2F6F8F;
  --on-dark: #F4F1EA; --on-dark-soft: rgba(244, 241, 234, .74);
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(29, 27, 24, .06), 0 14px 34px -14px rgba(29, 27, 24, .25);
  --wrap: 1160px; --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111113; --paper-2: #18181B; --card: #1D1D21;
    --text: #F1EEE8; --text-soft: #A9A39A; --line: rgba(241, 238, 232, .12);
    --copper-deep: #EE9A64;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 800px; }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--copper); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { inset-inline-start: 12px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 18px; height: 18px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

/* ---------- navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(22, 20, 18, .84); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--on-dark); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; text-decoration: none; color: var(--on-dark); }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 22px; margin-inline-start: auto; }
.links a { color: var(--on-dark-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: #fff; }
.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--on-dark-soft); font-size: 14px; font-weight: 600; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary .ic { width: 18px; height: 18px; }
.langs[open] summary { color: #fff; border-color: rgba(229, 138, 85, .6); }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(420px, 92vw); max-height: 70vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; background: #1F1C19; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
.langs a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--on-dark-soft); text-decoration: none; font-size: 14.5px; }
.langs a:hover, .langs a[aria-current] { background: rgba(229, 138, 85, .16); color: #fff; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 0; font: 700 16px/1.2 var(--font); color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #EF9C66, #C65F2D); box-shadow: 0 10px 26px -10px rgba(198, 95, 45, .85), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(198, 95, 45, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn-small { padding: 8px 15px; font-size: 14px; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .3); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .6); }
.btn-ghost-dark { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.btn-store-sm { padding: 10px 16px; font-size: 14.5px; }
.btn.is-soon { cursor: default; background: rgba(229, 138, 85, .16); color: #F6C3A0; box-shadow: inset 0 0 0 1px rgba(229, 138, 85, .45); transform: none; }
.sec .btn.is-soon, .prose .btn.is-soon { color: var(--copper-deep); }
.post-cta .btn.is-soon, .final .btn.is-soon, .foot .btn.is-soon { color: #F6C3A0; }

/* ---------- dark hero blocks */
.hero, .page-head, .post-head, .final, .sec-dark { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.aurora { position: absolute; inset: -20%; pointer-events: none; filter: blur(8px);
  background: radial-gradient(42% 38% at 18% 18%, rgba(229, 138, 85, .34), transparent 70%),
              radial-gradient(38% 34% at 86% 26%, rgba(47, 111, 143, .30), transparent 70%),
              radial-gradient(46% 40% at 62% 104%, rgba(180, 84, 42, .38), transparent 70%); }
.hero > .wrap, .page-head > .wrap, .post-head > .wrap, .final > .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #F6C3A0; background: rgba(229, 138, 85, .12); border: 1px solid rgba(229, 138, 85, .32); padding: 6px 13px; border-radius: 999px; margin-bottom: 20px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--on-dark-soft); max-width: 640px; }
.fine { font-size: 13.5px; color: rgba(244, 241, 234, .58); margin-top: 14px; }

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 850; letter-spacing: -.04em; line-height: 1.0; margin-bottom: 22px; }
.grad { background: linear-gradient(92deg, #FFDCC0 0%, #F3A06A 45%, #D06A35 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { font: 600 12.5px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: #F6C3A0; border: 1px solid rgba(229, 138, 85, .38); padding: 7px 11px; border-radius: 999px; background: rgba(229, 138, 85, .07); }
.hero-visual { position: relative; display: grid; place-items: center; padding-top: 40px; }
.phone { position: relative; width: min(330px, 74vw); aspect-ratio: 886 / 1920; padding: 10px; border-radius: 52px; background: linear-gradient(160deg, #3A3530, #141210 60%);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .6); }
.phone-screen { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; background: #F4F1EA; }
.rings { position: absolute; top: 34px; left: 50%; width: 0; height: 0; }
.rings i { position: absolute; left: 0; top: 0; width: 220px; height: 92px; margin: -46px 0 0 -110px; border-radius: 50%; border: 2px solid rgba(229, 138, 85, .55); box-shadow: 0 0 24px rgba(229, 138, 85, .35); animation: ring 3.2s ease-out infinite; opacity: 0; }
.rings i:nth-child(2) { animation-delay: .8s; } .rings i:nth-child(3) { animation-delay: 1.6s; } .rings i:nth-child(4) { animation-delay: 2.4s; }
@keyframes ring { 0% { transform: scale(.35); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }

/* ---------- sections */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-alt { background: var(--paper-2); }
.sec-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.sec-head h2, .split h2, .final h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.03em; font-weight: 820; }
.sec-head p { color: var(--text-soft); font-size: 19px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; background: var(--card); border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: var(--shadow); }
.step h3 { font-size: 20px; margin: 16px 0 8px; }
.step p { color: var(--text-soft); margin: 0; }
.step-ic { width: 34px; height: 34px; color: var(--copper-deep); }
.step-n { position: absolute; top: 18px; inset-inline-end: 22px; font: 800 15px/1 var(--font-display); color: var(--copper); background: rgba(229, 138, 85, .14); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }

.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.feat { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feat-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--copper-deep); background: rgba(229, 138, 85, .14); margin-bottom: 16px; }
.feat h3 { font-size: 19px; letter-spacing: -.01em; }
.feat p { color: var(--text-soft); font-size: 15.5px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--copper-deep); font-weight: 650; font-size: 15px; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 22px; margin-top: 36px; }
.extras li { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 15px; }
.extras .ic { color: var(--copper); }

.gallery-sec { overflow: hidden; }
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 26px; scrollbar-width: thin; }
.gallery li { flex: 0 0 auto; width: min(62vw, 262px); scroll-snap-align: center; }
.g-img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 24px 50px -24px rgba(29, 27, 24, .55); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split-rev > :first-child { order: 2; }
.split-img { display: grid; place-items: center; }
.tilt { width: min(330px, 70vw); height: auto; border-radius: 30px; transform: rotate(-3deg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.art { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.sec-dark .lead { margin-bottom: 18px; }
.ticks li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-weight: 600; }
.ticks .ic { color: var(--copper); }
.mini { font-size: 18px; margin-top: 22px; }
.note { background: rgba(229, 138, 85, .1); border-inline-start: 3px solid var(--copper); padding: 12px 16px; border-radius: 10px; color: var(--text-soft); font-size: 15px; }
.split .lead { color: var(--text-soft); }
.sec-dark .split .lead { color: var(--on-dark-soft); }

.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.pcard a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease; }
.pcard a:hover { transform: translateY(-2px); }
.pcard h3 { font-size: 20px; letter-spacing: -.01em; margin: 4px 0 0; }
.pcard p { color: var(--text-soft); font-size: 15.5px; margin: 0; }
.pcard .meta { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--copper-deep); font-size: 14px; font-weight: 650; }
.pill { align-self: flex-start; font-size: 12.5px; font-weight: 750; letter-spacing: .03em; padding: 4px 11px; border-radius: 999px; background: rgba(229, 138, 85, .14); color: var(--copper-deep); }
.pill-dark { background: rgba(229, 138, 85, .2); color: #F6C3A0; }
.sec .center { margin-top: 34px; }

.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--copper); font-size: 24px; line-height: 1; }
.qa[open] summary::after { content: "–"; }
.qa p { color: var(--text-soft); margin: 0 0 20px; }

.final { text-align: center; padding: clamp(72px, 10vw, 120px) 0; }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final-icon { border-radius: 22px; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .8); margin-bottom: 26px; }
.final .lead { margin: 0 auto 28px; }

/* ---------- page + article heads */
.page-head, .post-head { padding: clamp(52px, 7vw, 88px) 0 clamp(44px, 6vw, 64px); }
.page-head h1, .post-head h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.035em; font-weight: 830; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(244, 241, 234, .6); margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: #fff; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: rgba(244, 241, 234, .7); margin-bottom: 18px; }

/* ---------- prose */
.prose { font-size: 18px; line-height: 1.75; padding-top: 44px; padding-bottom: 72px; }
.sec .prose { padding-top: 0; padding-bottom: 0; }
.prose h2 { font-size: clamp(25px, 3vw, 30px); letter-spacing: -.02em; margin: 52px 0 14px; }
.prose h3 { font-size: 21px; margin: 34px 0 10px; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 20px; }
.prose ul { list-style: disc; padding-inline-start: 24px; }
.prose ol { padding-inline-start: 24px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--copper); }
.prose a { color: var(--copper-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { background: var(--paper-2); font-weight: 700; }
.prose code { font: 15px ui-monospace, "SF Mono", Menlo, monospace; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.shot { float: inline-end; width: 270px; margin: 8px 0 24px 0; margin-inline-start: 36px; }
.shot img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 26px 52px -24px rgba(29, 27, 24, .6); }
.shot figcaption { font-size: 13px; color: var(--text-soft); text-align: center; margin-top: 10px; }
.post-cta { clear: both; display: flex; align-items: center; gap: 22px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 28px; margin: 44px 0; box-shadow: var(--shadow); }
.post-cta img { border-radius: 16px; flex: none; }
.post-cta h2 { font-size: 22px; margin: 0 0 6px; color: #fff; }
.post-cta p { color: var(--on-dark-soft); margin: 0 0 16px; font-size: 16px; }
.post-cta .btn { text-decoration: none; }
.prose .post-cta a.btn { color: #fff; }

/* ---------- footer */
.foot { background: var(--night); color: rgba(244, 241, 234, .74); padding: 60px 0 26px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr; gap: 44px; }
.foot h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 241, 234, .5); margin-bottom: 14px; }
.foot li { margin: 8px 0; }
.foot a { text-decoration: none; } .foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand p { margin: 14px 0 18px; max-width: 340px; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px; font-size: 13px; color: rgba(244, 241, 234, .5); }

.chooser { background: var(--paper); padding: 60px 0; }
.lang-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.lang-list a { display: block; padding: 10px 14px; background: var(--card); border-radius: 12px; text-decoration: none; box-shadow: var(--shadow); }

/* ---------- responsive */
@media (max-width: 960px) {
  .hero-in, .split { grid-template-columns: 1fr; gap: 40px; }
  .split-rev > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .links { display: none; }
  .langs { margin-inline-start: auto; }
  .langs summary span { display: none; }
  .nav-in { gap: 12px; }
  .shot { float: none; width: min(72vw, 280px); margin: 28px auto; }
  .post-cta { flex-direction: column; align-items: flex-start; }
  .foot-in, .extras { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rings i { animation: none; opacity: .5; transform: scale(1); }
  .btn, .pcard a { transition: none; }
}
