/* OHM Store: a made-up store for real devices, a G Development portfolio demo.
   The layout follows the calm product-first rhythm of apple.com: a thin bar, big centred names,
   full-bleed tiles, lots of air. Text, images and the store itself are our own. */
:root {
  --page: #fbfbfd;
  --tile: #f5f5f7;
  --ink: #1d1d1f;
  --dim: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link-dark: #2997ff;
  --night: #000;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --pad: max(22px, calc((100vw - 980px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 22px; }

/* ---------- global bar ---------- */
.gnav { position: sticky; top: 0; z-index: 50; height: 44px; background: rgba(251, 251, 253, 0.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.gnav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.logo i { font-style: normal; color: var(--blue); }
.glinks { display: flex; gap: 30px; font-size: 12px; color: rgba(0, 0, 0, 0.8); letter-spacing: -0.01em; }
.glinks a:hover { color: #000; }
.gtools { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; gap: 2px; }
.langs button { background: none; border: 0; padding: 6px 5px; font-size: 12px; color: var(--faint); }
.langs button[aria-pressed='true'] { color: var(--ink); font-weight: 600; }
.bag { position: relative; display: grid; place-items: center; width: 30px; height: 30px; background: none; border: 0; padding: 0; }
.bag svg { width: 17px; height: 17px; }
.bag b { position: absolute; right: -3px; bottom: 0; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 10px; line-height: 15px; text-align: center; font-weight: 600; }
.bag b[data-n='0'] { display: none; }
.burger { display: none; width: 30px; height: 30px; background: none; border: 0; padding: 0; }
.burger i { display: block; width: 17px; height: 1.2px; margin: 5px auto; background: var(--ink); transition: transform .3s; }
.burger[aria-expanded='true'] i:first-child { transform: translateY(3.2px) rotate(45deg); }
.burger[aria-expanded='true'] i:last-child { transform: translateY(-3.2px) rotate(-45deg); }
.menu { position: fixed; inset: 44px 0 0; z-index: 49; background: var(--page); padding: 22px 44px; display: none; }
.menu.on { display: block; }
.menu a { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; padding: 6px 0; }

.ribbon { background: var(--tile); text-align: center; font-size: 14px; padding: 13px 22px; }
.ribbon a { color: var(--blue); white-space: nowrap; }
.ribbon a:hover { text-decoration: underline; }

/* ---------- type ---------- */
.h-hero { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05; letter-spacing: -0.015em; margin: 0; }
.h-tile { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.003em; margin: 0; }
.h-sec { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.07; letter-spacing: -0.005em; margin: 0; }
.tag { font-size: clamp(19px, 2vw, 28px); line-height: 1.14; letter-spacing: 0.007em; font-weight: 400; margin: 6px 0 0; }
.fine { font-size: 12px; line-height: 1.33; color: var(--faint); letter-spacing: -0.01em; }
.link { color: var(--blue); }
.link:hover { text-decoration: underline; }
.night .link { color: var(--link-dark); }

.ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 980px; padding: 11px 21px; font-size: 17px; line-height: 1.18; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-fill { background: var(--blue); color: #fff; }
.btn-fill:hover { background: var(--blue-hover); }
.btn-out { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-out:hover { background: var(--blue); color: #fff; }
.night .btn-out { border-color: var(--link-dark); color: var(--link-dark); }
.night .btn-out:hover { background: var(--link-dark); color: #000; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 15px; font-size: 14px; }

/* ---------- hero: the phone on black ---------- */
.night { background: var(--night); color: #f5f5f7; }
.hero { text-align: center; padding: 44px 0 30px; overflow: hidden; }
.hero .from { margin-top: 14px; font-size: 14px; color: var(--faint); }
.stage { position: relative; height: clamp(360px, calc(100svh - 430px), 600px); margin-top: 4px; }
model-viewer { width: 100%; height: 100%; --poster-color: transparent; --progress-bar-color: var(--link-dark); --progress-bar-height: 2px; background: transparent; }
.drag-hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: 12px; color: var(--faint); white-space: nowrap; transition: opacity .4s; pointer-events: none; }
.stage.touched .drag-hint { opacity: 0; }
.finish { display: inline-flex; align-items: center; gap: 16px; margin-top: 10px; padding: 10px 18px; border-radius: 980px; background: rgba(66, 66, 69, 0.55); }
.finish-l { font-size: 14px; color: #d2d2d7; min-width: 7.5em; text-align: left; }
.sw { display: flex; gap: 12px; }
.sw button { width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); transition: box-shadow .2s; }
.sw button[aria-pressed='true'] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 0 2px var(--night), 0 0 0 3.5px #f5f5f7; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.tile { position: relative; overflow: hidden; background: #f4f4f4; text-align: center; padding: 52px 24px 0; min-height: 580px; display: flex; flex-direction: column; align-items: center; }
.tile.full { grid-column: 1 / -1; min-height: 692px; }
.tile.dark { background: var(--night); color: #f5f5f7; }
.tile .ctas { margin-top: 14px; }
.tile .pic { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; margin-top: 10px; }
.tile .pic img { width: min(100%, 440px); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.tile.full .pic img { width: min(100%, 560px); }
.tile:hover .pic img { transform: scale(1.025); }
.zero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding-bottom: 40px; }
.zero b { font-family: var(--display); font-weight: 700; font-size: clamp(110px, 14vw, 190px); line-height: 0.9; letter-spacing: -0.05em; background: linear-gradient(180deg, #f5f5f7 20%, #6e6e73); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bars { display: grid; grid-template-columns: repeat(12, 14px); gap: 5px; height: 40px; align-items: end; }
.bars i { display: block; border-radius: 3px; background: var(--link-dark); transform-origin: bottom; }

/* ---------- a closer look: sticky phone, one idea per screen ---------- */
.closer-head { text-align: center; padding: 120px 22px 20px; }
.story { position: relative; height: 300vh; }
.story-sticky { position: sticky; top: 44px; height: calc(100svh - 44px); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; max-width: 1200px; margin: 0 auto; }
.story-model { height: 100%; }
.story-steps { position: relative; height: 60%; padding: 0 44px 0 64px; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.step.on { opacity: 1; transform: none; }
.step .num { font-size: 14px; font-weight: 600; color: var(--faint); margin-bottom: 12px; letter-spacing: 0; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; margin: 0 0 14px; }
.step p { color: var(--faint); font-size: 19px; line-height: 1.42; max-width: 30ch; margin: 0; font-weight: 500; }
.progress { display: flex; gap: 8px; margin-top: 28px; }
.progress i { width: 30px; height: 3px; border-radius: 3px; background: #333336; transition: background .3s; }
.progress i.on { background: #f5f5f7; }

/* ---------- sections on the light page ---------- */
.sec { padding: 110px 0; }
.sec.gray { background: var(--tile); }
.sec-head { text-align: center; margin-bottom: 48px; padding: 0 22px; }
.sec-head .tag { color: var(--dim); }

/* compare */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; text-align: center; }
.cmp-col img { width: 210px; margin: 0 auto 18px; border-radius: 18px; }
.cmp-col h3 { font-family: var(--display); font-size: 28px; font-weight: 600; margin: 0; }
.cmp-col .dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0; }
.cmp-col .dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cmp-col .price { font-size: 17px; margin: 0 0 16px; }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); padding: 22px 0; text-align: center; }
.cmp-row b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.cmp-row span { font-size: 14px; color: var(--dim); }

/* buy */
.buy { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.buy-view { position: sticky; top: 64px; height: min(78svh, 700px); background: var(--tile); border-radius: 18px; overflow: hidden; }
.buy-form .h-sec { font-size: clamp(32px, 3.4vw, 48px); }
.buy-form .from { color: var(--dim); margin: 6px 0 30px; }
.grp { border-top: 1px solid var(--line); padding: 26px 0; }
.grp h4 { font-family: var(--display); font-size: 24px; font-weight: 600; margin: 0 0 4px; letter-spacing: 0; }
.grp h4 span { color: var(--faint); }
.grp .help { font-size: 14px; color: var(--dim); margin: 0 0 16px; }
.cards { display: grid; gap: 12px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1px solid #86868b; border-radius: 12px; padding: 16px 18px; min-height: 64px; transition: border-color .15s, box-shadow .15s; }
.pick:hover { border-color: #1d1d1f; }
.pick[aria-pressed='true'] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.pick b { font-weight: 600; font-size: 17px; }
.pick small { display: block; font-size: 12px; color: var(--dim); }
.pick .p { font-size: 12px; color: var(--dim); text-align: right; white-space: nowrap; }
.buy-sw { display: flex; gap: 14px; }
.buy-sw button { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.buy-sw button[aria-pressed='true'] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.summary { background: var(--tile); border-radius: 18px; padding: 26px; margin-top: 8px; }
.summary .tot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-size: 24px; font-weight: 600; }
.summary .tot small { font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--dim); }
.summary .btn { width: 100%; margin-top: 18px; }

/* shelf: horizontal cards like a store window */
.shelf { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 10px var(--pad) 40px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.card { flex: none; width: 300px; scroll-snap-align: start; background: #fff; border-radius: 18px; box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s cubic-bezier(0,0,.5,1), box-shadow .3s; }
.card:hover { transform: scale(1.02); box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.16); }
.card .top { padding: 24px 24px 0; }
.card .new { font-size: 12px; color: #b64400; font-weight: 600; letter-spacing: 0; }
.card h3 { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.19; margin: 4px 0 6px; letter-spacing: 0.01em; }
.card .spec { font-size: 14px; color: var(--dim); }
.card img { width: calc(100% - 40px); margin: 14px auto 16px; border-radius: 14px; }
.card .bot { margin-top: auto; padding: 0 24px 24px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card .price { font-size: 14px; line-height: 1.3; }
.card .price small { display: block; color: var(--dim); font-size: 12px; }
.pager { display: flex; justify-content: flex-end; gap: 12px; padding: 0 var(--pad); }
.pager button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e8e8ed; color: #1d1d1f; font-size: 18px; display: grid; place-items: center; }
.pager button:hover { background: #dcdce1; }

/* why OHM */
.why { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 10px var(--pad) 30px; scrollbar-width: none; }
.why::-webkit-scrollbar { display: none; }
.why article { flex: none; width: 320px; min-height: 250px; scroll-snap-align: start; background: #fff; border-radius: 18px; padding: 30px; box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.06); }
.why svg { width: 34px; height: 34px; color: var(--blue); margin-bottom: 18px; }
.why h3 { font-family: var(--display); font-size: 21px; font-weight: 600; margin: 0 0 8px; line-height: 1.2; }
.why p { margin: 0; font-size: 15px; color: var(--dim); }

/* credit */
.calc { max-width: 820px; margin: 0 auto; background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.06); }
.calc .lbl { font-size: 12px; color: var(--dim); margin: 0 0 10px; font-weight: 600; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { border: 1px solid #86868b; background: #fff; border-radius: 980px; padding: 8px 15px; font-size: 14px; }
.chip[aria-pressed='true'] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.pay b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.02em; line-height: 1.05; }
.pay span { color: var(--dim); font-size: 14px; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; height: 36px; align-items: end; margin: 22px 0 8px; }
.months i { display: block; height: 100%; border-radius: 4px; background: #e8e8ed; transform-origin: bottom; transform: scaleY(0.4); transition: background .35s, transform .45s cubic-bezier(.2,.8,.2,1); }
.months i.on { background: var(--blue); transform: scaleY(1); }

/* made by */
.made { text-align: center; padding: 100px 22px; background: #fff; }
.made p { color: var(--dim); max-width: 36em; margin: 12px auto 0; }

/* footer */
.foot { background: var(--tile); padding: 20px 0 30px; }
.foot .fine { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 0; }
.foot .fine + .fine { border: 0; padding-top: 12px; }
.foot ol { margin: 0; padding-left: 16px; }
.foot .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 14px; font-size: 12px; color: var(--dim); }
.foot .row a:hover { text-decoration: underline; }

/* product sheet and bag */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 70; left: 50%; top: 50%; width: min(880px, calc(100vw - 24px)); max-height: calc(100svh - 40px); overflow: auto; background: #fff; border-radius: 28px; transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1); display: grid; grid-template-columns: 1fr 1fr; }
.sheet.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.sheet .pic { background: #f5f5f5; display: grid; place-items: center; }
.sheet .body { padding: 44px 36px 36px; }
.sheet h3 { font-family: var(--display); font-size: 32px; font-weight: 600; margin: 0 0 6px; line-height: 1.1; }
.sheet ul { margin: 18px 0 22px; padding: 0; list-style: none; }
.sheet li { padding: 10px 0; border-top: 1px solid #e8e8ed; font-size: 15px; }
.x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e8e8ed; font-size: 18px; line-height: 1; z-index: 2; }
.drawer { position: fixed; z-index: 70; top: 0; right: 0; height: 100%; width: min(440px, 100vw); background: #fff; transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 12px; }
.drawer h3 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 600; }
.drawer .x { position: static; }
.lines { flex: 1; overflow: auto; padding: 0 24px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid #e8e8ed; }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #f5f5f5; }
.line .t { font-weight: 600; font-size: 15px; }
.line .s { color: var(--dim); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.drawer footer { padding: 18px 24px 24px; border-top: 1px solid #e8e8ed; display: grid; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #e8e8ed; border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 8px; padding: 8px; font-size: 14px; }
.seg button[aria-pressed='true'] { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 19px; }
.total small { display: block; text-align: right; font-weight: 400; font-size: 13px; color: var(--dim); }
.field { width: 100%; background: #fff; border: 1px solid #86868b; border-radius: 12px; padding: 14px 15px; font: inherit; font-size: 17px; color: var(--ink); }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2); }
.empty { color: var(--dim); padding: 40px 0; text-align: center; }
.ok { text-align: center; padding: 40px 0; }
.ok b { display: block; font-family: var(--display); font-size: 24px; margin-bottom: 8px; }
.note { font-size: 13px; color: var(--dim); }

/* entrances: a soft rise, the way product pages ease in */
.rise { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 1068px) {
  .glinks { gap: 20px; }
}
@media (max-width: 833px) {
  .glinks { display: none; }
  .burger { display: block; }
  .tiles { grid-template-columns: 1fr; padding: 12px 0; }
  .tile, .tile.full { min-height: 520px; padding-top: 44px; }
  .story { height: auto; }
  .story-sticky { position: relative; top: 0; height: auto; grid-template-columns: 1fr; }
  .story-model { height: 52svh; }
  .story-steps { height: auto; padding: 0 22px 60px; display: grid; gap: 40px; }
  .step { position: relative; opacity: 1; transform: none; }
  .progress { display: none; }
  .buy { grid-template-columns: 1fr; gap: 24px; }
  .buy-view { position: relative; top: 0; height: 52svh; }
  .sheet { grid-template-columns: 1fr; }
  .sheet .pic img { max-height: 34svh; width: auto; }
  .sheet .body { padding: 26px 22px 24px; }
}
@media (max-width: 560px) {
  .cmp, .cmp-row { gap: 12px; }
  .cmp-col img { width: 130px; }
  .cmp-col h3 { font-size: 21px; }
  .cmp-row b { font-size: 22px; }
  .cards.two { grid-template-columns: 1fr; }
  .card { width: 270px; }
  .why article { width: 280px; }
  .finish { gap: 10px; padding: 8px 14px; }
  .finish-l { min-width: 0; }
  .ctas { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
}
