/* dineraya.com — Graphite and gold.
   The direction contract lives in .impeccable/surfaces/index-html.md;
   read it before changing the world here. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #cfcfc9 transparent; }
body { margin: 0; font-family: "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; caret-color: #c7860f; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; background: #111113; color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

:root {
  --ground: #fbfbfa;
  --card: #fff;
  --ink: #111113;
  --ink-2: #4c4c55;
  --ink-3: #5f5f68;
  --line: #e8e8e4;
  --gold: #c7860f;
  --ok: #157a4a;
  color-scheme: light;
}
::selection { background: #f6e2b4; color: #111113; }
body { background: var(--ground); color: var(--ink); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sell :focus-visible { outline-color: #fff; }
.w { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.nav .w { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -.015em; text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #f2c35a, #c7860f 60%, #9d6609); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 2px 5px -2px rgb(0 0 0 / .35); }
.mark svg { width: 16px; height: 16px; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav-end a.txt { color: var(--ink-2); text-decoration: none; }
.nav-end a.txt:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; transition: background-color .2s, transform .2s cubic-bezier(.16,1,.3,1), border-color .2s; }
.btn .icon { width: 18px; height: 18px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 10px 24px -12px rgb(0 0 0 / .5); }
.btn-ink:hover { background: #2a2a2e; transform: translateY(-1px); }
.btn-line { border-color: #d6d6d1; color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }

/* Hero: words left, the payment happening right */
.hero .w { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
h1 { font-size: clamp(46px, 6.4vw, 86px); line-height: .96; letter-spacing: -.04em; font-weight: 650; text-wrap: balance; }
.lede { margin-top: 26px; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }
.cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.early { margin-top: 28px; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.early::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.phone-wrap { position: relative; justify-self: center; }
.phone { width: 320px; height: 640px; border-radius: 52px; background: #111113; padding: 12px; box-shadow: 0 0 0 1px #2c2c30 inset, 0 50px 80px -30px rgb(0 0 0 / .45), 0 20px 30px -20px rgb(0 0 0 / .3); }
.screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: #f2f2ef; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #111113; z-index: 3; }
.shopbg { padding: 64px 22px 0; }
.shopbg b { display: block; font-size: 15px; font-weight: 640; }
.shopbg .ln { height: 10px; border-radius: 6px; background: #e3e3de; margin-top: 12px; }
.shopbg .img { height: 140px; border-radius: 16px; margin-top: 18px; background: linear-gradient(135deg, #8b5e3c, #3b2a1e); }
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; background: #fff; border-radius: 34px 34px 34px 34px; padding: 22px 20px 20px; box-shadow: 0 -10px 30px -10px rgb(0 0 0 / .18); }
.sheet .top { display: flex; align-items: center; gap: 10px; }
.sheet .av { width: 34px; height: 34px; border-radius: 10px; background: #3b2a1e; color: #f3e3cf; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.sheet .top b { font-size: 14.5px; font-weight: 620; display: block; }
.sheet .top div span { font-size: 12.5px; color: var(--ink-3); }
.sheet .amt { font-size: 36px; font-weight: 650; letter-spacing: -.035em; margin: 14px 0 12px; font-variant-numeric: tabular-nums; }
.sheet ul { border-top: 1px solid var(--line); font-size: 13.5px; }
.sheet li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sheet li .icon { width: 15px; height: 15px; color: var(--ink-3); }
.sheet li .v { margin-left: auto; color: var(--ink-2); white-space: nowrap; }
.sheet .pay { margin-top: 14px; height: 48px; border-radius: 16px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 15px; position: relative; overflow: hidden; }
.sheet .pay .icon { width: 19px; height: 19px; }

/* The loop: confirm, tap, paid */
.pay .lbl-a, .pay .lbl-b { display: inline-flex; align-items: center; gap: 9px; position: absolute; transition: none; }
.pay .lbl-a { animation: la 6s infinite; }
.pay .lbl-b { animation: lb 6s infinite; opacity: 0; }
.pay::after { content: ""; position: absolute; inset: 0; background: var(--ok); transform: scaleX(0); transform-origin: left; animation: fill 6s infinite; z-index: 0; }
.pay > * { z-index: 1; }
@keyframes la { 0%, 44% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes lb { 0%, 52% { opacity: 0; transform: translateY(8px); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fill { 0%, 30% { transform: scaleX(0); } 48% { transform: scaleX(1); } 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.touch { position: absolute; left: 50%; bottom: 34px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: rgb(17 17 19 / .12); border: 2px solid rgb(255 255 255 / .8); animation: touch 6s infinite; opacity: 0; z-index: 4; pointer-events: none; }
@keyframes touch { 0%, 16% { opacity: 0; transform: scale(1.4); } 24% { opacity: 1; transform: scale(1); } 32% { opacity: 1; transform: scale(.86); } 40%, 100% { opacity: 0; transform: scale(.86); } }

/* The line */
.line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.line .w { padding-top: 72px; padding-bottom: 72px; }
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.end { display: flex; align-items: center; gap: 14px; }
.end .ic { width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--ground); }
.end .ic .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.end b { display: block; font-weight: 620; font-size: 17px; }
.end span { font-size: 14px; color: var(--ink-3); }
.end.r { flex-direction: row-reverse; text-align: right; }
.track { position: relative; height: 2px; background: repeating-linear-gradient(90deg, #cfcfc9 0 6px, transparent 6px 12px); }
.track::after { content: ""; position: absolute; left: 0; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); top: -8px; width: 18px; height: 18px; animation: go 3.2s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes go { from { left: 0; } to { left: calc(100% - 18px); } }
.track span { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); font-size: 13.5px; color: var(--ink-3); background: var(--card); padding: 0 12px; white-space: nowrap; }
.three { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.three h3 { font-size: 20px; font-weight: 630; letter-spacing: -.02em; }
.three p { margin-top: 8px; color: var(--ink-2); max-width: 34ch; }

/* Two doors */
.doors { padding: 112px 0; }
.doors h2 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.04; font-weight: 650; max-width: 18ch; }
.pair { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door { border-radius: 28px; padding: 40px; display: flex; flex-direction: column; min-height: 340px; }
.door h3 { font-size: 26px; letter-spacing: -.03em; font-weight: 640; }
.door p { margin-top: 12px; max-width: 36ch; }
.door ul { margin: 20px 0 32px; display: grid; gap: 10px; }
.door li { display: flex; gap: 10px; align-items: start; }
.door li .icon { width: 17px; height: 17px; margin-top: 4px; flex: none; }
.door .btn { margin-top: auto; align-self: start; }
.buy { background: var(--card); border: 1px solid var(--line); }
.buy p, .buy li { color: var(--ink-2); }
.buy li .icon { color: var(--ok); }
.sell { background: var(--ink); color: #f3f3f0; }
.sell p, .sell li { color: #c3c3bd; }
.sell li .icon { color: #f2c35a; }
.sell .btn { background: #fff; color: var(--ink); }
.sell .btn:hover { background: #ececea; }


footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--ink-3); }
footer .w { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .sp { margin-left: auto; display: flex; gap: 22px; }

@media (max-width: 960px) {
  .w { padding: 0 20px; }
  .nav .w { gap: 14px; }
  .nav-end { gap: 14px; font-size: 14px; }
  .nav-end a.txt[href="#shops"] { display: none; }
  .hero .w { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 56px; gap: 28px; }
  .lede { margin-top: 16px; font-size: 18px; }
  .cta { margin-top: 22px; }
  .early { margin-top: 16px; }
  .phone { width: 300px; height: 372px; border-radius: 46px; padding: 10px; }
  .screen { border-radius: 37px; }
  .shopbg { padding-top: 50px; }
  .shopbg .ln, .shopbg .img { display: none; }
  .sheet { padding: 18px 16px 16px; }
  .sheet ul { font-size: 12.5px; }
  .sheet .amt { font-size: 32px; }
  .route { grid-template-columns: 1fr; gap: 20px; }
  .track { height: 48px; width: 2px; margin-left: 25px; background: repeating-linear-gradient(180deg, #cfcfc9 0 6px, transparent 6px 12px); }
  .track::after { left: -8px; animation: none; top: 15px; }
  .track span { left: 24px; top: 50%; transform: translateY(-50%); }
  .end.r { flex-direction: row; text-align: left; }
  .three { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .doors { padding: 72px 0; }
  .pair { grid-template-columns: 1fr; }
  .door { padding: 28px; min-height: 0; }
  footer .sp { margin-left: 0; }
}

/* Reduced motion: the phone holds still on the confirmation, and the
   dot rests at the start of its route. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pay .lbl-a, .pay .lbl-b, .pay::after, .touch, .track::after { animation: none; }
  .pay .lbl-b, .touch { opacity: 0; }
  .btn { transition: none; }
}

