@font-face { font-family: Cormorant; src: url('assets/CormorantGaramond-Medium.ttf'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Cormorant; src: url('assets/CormorantGaramond-MediumItalic.ttf'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: Mukta; src: url('assets/MuktaVaani-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: Mukta; src: url('assets/MuktaVaani-SemiBold.ttf'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f8f4ef;
  --ink: #173a33;
  --green: #0a6954;
  --muted: #50645c;
  --paper: oklch(97% .012 75);
  --ink: oklch(30% .045 173);
  --green: oklch(45% .085 172);
  --muted: oklch(46% .025 165);
  --display: Cormorant, 'Iowan Old Style', Georgia, serif;
  --arrive: cubic-bezier(.16, 1, .3, 1);
  --leave: cubic-bezier(.5, 0, .9, .4);
}

* { box-sizing: border-box; }
body { margin: 0; background: #d7ddd7; color: var(--ink); font: 17px/1.4 Mukta, sans-serif; font-synthesis: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
a { color: var(--green); text-underline-offset: 4px; }
button:hover, a:hover { filter: brightness(.88); }
button:active { transform: translateY(1px); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
h1:focus { outline: none; }
::selection { background: oklch(83% .07 170); }
input { caret-color: var(--green); }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.phone {
  --step: 0;
  position: relative;
  isolation: isolate;
  max-width: 430px;
  min-height: 780px;
  height: calc(100svh - 40px);
  max-height: 940px;
  margin: 20px auto;
  overflow: hidden;
  background: var(--paper);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
}

.field {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 66%;
  overflow: hidden;
  transform-origin: top;
  transition: transform .6s var(--arrive);
}
.field::after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, var(--paper) 94%);
  background: linear-gradient(in oklch, oklch(97% .012 75 / 0), var(--paper) 94%);
}
.field-pan {
  width: 300%;
  height: calc(100% - 4px);
  transform: translateX(calc(var(--step) * -33.3333%));
  transition: transform 1s var(--arrive);
  background:
    radial-gradient(ellipse 21% 46% at 31% 56%, #c9778f8c, transparent 72%),
    radial-gradient(ellipse 24% 44% at 49% 74%, #f0a05fd9, transparent 72%),
    radial-gradient(ellipse 17% 42% at 63% 36%, #b8587c99, transparent 72%),
    radial-gradient(ellipse 22% 50% at 87% 58%, #8fc0c48c, transparent 72%),
    linear-gradient(#08715e, #548b78 40%, #ecc7ae 84%);
  background:
    radial-gradient(ellipse 21% 46% at 31% 56%, oklch(64% .13 352 / .55), transparent 72%),
    radial-gradient(ellipse 24% 44% at 49% 74%, oklch(76% .14 55 / .85), transparent 72%),
    radial-gradient(ellipse 17% 42% at 63% 36%, oklch(58% .15 352 / .6), transparent 72%),
    radial-gradient(ellipse 22% 50% at 87% 58%, oklch(77% .06 200 / .55), transparent 72%),
    linear-gradient(in oklch, oklch(43% .09 172), oklch(60% .07 165) 40%, oklch(85% .06 55) 84%);
}

header { height: 100px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 26px 28px 8px; }
.brand { width: 114px; height: auto; display: block; }

#onboard { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hero { flex: 1; min-height: 310px; max-height: 450px; position: relative; touch-action: pan-y; }
.stage { width: 390px; height: 380px; position: absolute; left: 50%; top: 50%; margin: -190px 0 0 -195px; }

/* A scene's place on the track is its data-side: -1 before the current step, 0 current, 1 after. */
[data-side="-1"] { --side: -1; --away: 1; }
[data-side="0"] { --side: 0; --away: 0; }
[data-side="1"] { --side: 1; --away: 1; }

.scene {
  position: absolute;
  inset: 0;
  opacity: calc(1 - var(--away));
  transform: translateX(calc(var(--side) * 56px)) scale(calc(1 - var(--away) * .05));
  transition: opacity .16s linear, transform .3s var(--leave);
}
.scene[data-side="0"] { transition: opacity .4s .12s ease-out, transform .7s .08s var(--arrive); }
.layer {
  position: absolute;
  inset: 0;
  transform: translateX(calc(var(--side) * var(--travel)));
  transition: transform .3s var(--leave);
}
.scene[data-side="0"] .layer { transition: transform .8s .08s var(--arrive); }
.layer.ground { --travel: -22px; }
.layer.pieces { --travel: 46px; }

.garment { position: absolute; object-fit: contain; pointer-events: none; filter: drop-shadow(0 14px 12px oklch(30% .04 170 / .2)); }

.rail { position: absolute; left: -90px; right: -90px; top: 24px; height: 2px; border-radius: 2px; background: oklch(98% .01 75 / .85); }
.hook { position: absolute; left: 303px; top: 12px; width: 24px; height: 44px; fill: none; stroke: oklch(98% .01 75 / .85); stroke-width: 1.6; stroke-linecap: round; }
.scene-wardrobe .tee { width: 176px; left: -62px; top: 16px; transform: rotate(-2deg); transform-origin: 50% 0; }
.scene-wardrobe .jeans { width: 118px; left: 78px; top: 118px; transform: rotate(2deg); }
.scene-wardrobe .shirt { width: 244px; left: 62px; top: 14px; transform: rotate(-1deg); transform-origin: 50% 0; }
.scene-wardrobe .khaki { width: 96px; left: 218px; top: 176px; transform: rotate(-3deg); }
.scene-wardrobe .bomber { width: 196px; left: 218px; top: 52px; transform: rotate(3deg); transform-origin: 50% 0; }
.scene-wardrobe .sneaker { width: 126px; left: -6px; top: 262px; transform: rotate(20deg); }

.weather { position: absolute; left: 20px; top: 200px; width: 150px; color: var(--ink); }
.degrees { display: block; font: 500 116px/.8 var(--display); font-variant-numeric: lining-nums; letter-spacing: -.03em; color: oklch(99% .01 75); }
.weather p { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; font-size: 16px; line-height: 1; }
.weather .icon { width: 19px; height: 19px; }
.weather b { font-weight: 600; }
.weather small { display: block; margin-top: 7px; font-size: 13px; line-height: 1.35; }
.scene-outfit .khaki { width: 104px; left: 170px; top: 160px; transform: rotate(2deg); }
.scene-outfit .shirt { width: 226px; left: 108px; top: 0; transform: rotate(-3deg); }
.scene-outfit .bomber { width: 172px; left: 226px; top: 66px; transform: rotate(8deg); }
.scene-outfit .sneaker { width: 122px; left: 266px; top: 264px; transform: rotate(-8deg); }

.case, .packed { position: absolute; left: 22px; top: 40px; width: 346px; height: 292px; transform: rotate(-3deg); }
.case {
  border-radius: 38px;
  background: oklch(96% .02 70 / .78);
  box-shadow: inset 0 0 0 2px oklch(52% .04 60 / .38), inset 0 0 0 11px oklch(92% .035 65 / .9), 0 18px 22px -10px oklch(30% .04 170 / .28);
}
.case::before { content: ''; position: absolute; top: -20px; left: 132px; width: 82px; height: 22px; border: 2.5px solid oklch(52% .04 60 / .6); border-bottom: 0; border-radius: 13px 13px 0 0; }
.fold { position: absolute; overflow: hidden; border-radius: 7px; box-shadow: 0 9px 12px -6px oklch(30% .04 170 / .45); }
.fold::after { content: ''; position: absolute; inset: auto 0 0; height: 16px; background: linear-gradient(transparent, oklch(25% .03 170 / .22)); }
.fold img { position: absolute; max-width: none; }
.fold-shirt { left: 26px; top: 26px; width: 140px; height: 148px; }
.fold-shirt img { width: 350px; left: -106px; top: -52px; }
.fold-bomber { left: 180px; top: 26px; width: 140px; height: 124px; transform: rotate(1.5deg); }
.fold-bomber img { width: 272px; left: -66px; top: -30px; }
.fold-khaki { left: 40px; top: 188px; width: 112px; height: 76px; }
.fold-khaki img { width: 126px; left: -7px; top: -6px; }
.scene-packing .sneaker { width: 150px; left: 166px; top: 128px; transform: rotate(22deg); }
.trip-note { position: absolute; left: 0; right: 0; top: 346px; margin: 0; text-align: center; font: italic 500 19px/1 var(--display); color: var(--muted); }

.story { position: relative; display: grid; padding: 26px 26px 0; text-align: center; flex-shrink: 0; }
.panel {
  grid-area: 1 / 1;
  opacity: calc(1 - var(--away));
  transform: translateX(calc(var(--side) * 18px));
  transition: opacity .14s linear, transform .3s var(--leave);
}
.panel[data-side="0"] { transition: opacity .42s .16s ease-out, transform .68s .12s var(--arrive); }
h1 { font: 500 43px/.98 var(--display); letter-spacing: -.012em; margin: 0; }
.panel h1 em { display: block; font-style: italic; color: var(--green); }
.panel p { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 14px auto 0; max-width: 322px; text-wrap: balance; }

.bottom { padding: 8px 28px 22px; flex-shrink: 0; }
.step-navigation { position: relative; height: 49px; display: flex; align-items: center; justify-content: center; }
.back { width: 44px; height: 44px; display: grid; place-items: center; color: var(--green); border-radius: 12px; }
.step-navigation > .back { position: absolute; left: -10px; top: 2px; transition: opacity .3s ease-out, visibility .3s; }
.step-navigation > .back:disabled { opacity: 0; visibility: hidden; }
.steps { position: relative; display: flex; align-items: center; justify-content: center; }
.steps button { width: 30px; height: 44px; display: grid; place-items: center; padding: 0; }
.steps span { width: 5px; height: 5px; background: oklch(74% .02 160); border-radius: 5px; }
.steps::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: 19.5px;
  width: 19px;
  height: 5px;
  border-radius: 5px;
  background: var(--green);
  pointer-events: none;
  transform: translateX(calc(var(--step) * 30px));
  transition: transform .5s var(--arrive);
}
.primary { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 54px; padding: 10px 20px; border-radius: 15px; background: var(--green); color: var(--paper); font-size: 17px; font-weight: 600; }
.primary .icon { width: 21px; height: 21px; }
.labels { display: grid; }
.labels span { grid-area: 1 / 1; transition: opacity .25s ease-out; }
.labels [aria-hidden="true"] { opacity: 0; }
.foot { font-size: 14px; color: var(--muted); text-align: center; margin: 15px 0 0; }
.foot a { display: inline-block; padding: 3px 4px; font-weight: 600; text-decoration: none; }

.phone.auth-view .field { transform: scaleY(.3); }
#auth { display: flex; flex: 1; flex-direction: column; padding: 38px 28px 22px; }
.auth-heading { margin-bottom: 30px; }
.auth-heading h1 { font-size: 44px; }
.auth-heading h1 em { display: block; color: var(--green); }
.auth-heading p { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 17px; }
input { display: block; width: 100%; height: 52px; border: 1px solid #acb9ad; border-radius: 12px; background: #ffffff68; padding: 12px 14px; margin-top: 6px; color: var(--ink); min-width: 0; }
input::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
.password { display: flex; position: relative; }
.password input { padding-right: 55px; }
.password button { position: absolute; right: 5px; top: 10px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--green); }
.password button[aria-pressed=true]::after { content: ''; position: absolute; width: 25px; height: 1.7px; background: currentColor; transform: rotate(-45deg); }
.forgot { display: block; min-height: 34px; margin: -7px 0 0 auto; padding: 0; font-size: 14px; color: var(--green); }
.notice { font-size: 13px; line-height: 1.4; color: var(--muted); min-height: 37px; margin: 16px 0 20px; }
.notice.feedback { color: var(--green); font-weight: 600; }
.auth-bottom { margin-top: auto; }
.providers { display: flex; gap: 12px; margin-top: 16px; }
.providers button { flex: 1; height: 46px; border: 1px solid #b9c3b9; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 15px; }
.providers svg, .providers img { width: 17px; height: 17px; fill: currentColor; }
.switch { font-size: 14px; text-align: center; color: var(--muted); margin: 14px 0 0; }
.switch button { padding: 5px; font-weight: 600; color: var(--green); }

.phone.instant, .phone.instant * , .phone.instant *::after { transition: none !important; }

@media (max-width: 480px) {
  body { background: var(--paper); }
  .phone { margin: 0 auto; min-height: 100svh; height: 100svh; max-height: none; border-radius: 0; }
  header { padding-top: max(26px, env(safe-area-inset-top)); }
  .bottom, #auth { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
@media (max-width: 370px) {
  .stage { transform: scale(.82); }
  .hero { min-height: 280px; }
  .story { padding: 20px 18px 0; }
  h1 { font-size: 38px; }
  .panel p { font-size: 15px; }
  .bottom, #auth { padding-left: 22px; padding-right: 22px; }
  .auth-heading h1 { font-size: 39px; }
}
@media (max-height: 740px) {
  header { height: 76px; padding-top: 18px; }
  .brand { width: 100px; }
  .hero { min-height: 245px; }
  .stage { transform: scale(.76); }
  .story { padding-top: 14px; }
  h1 { font-size: 36px; }
  .panel p { margin-top: 10px; }
  .bottom { padding-top: 0; padding-bottom: 16px; }
  .phone { min-height: 650px; }
  #auth { padding-top: 22px; }
  .auth-heading { margin-bottom: 20px; }
  label { margin-bottom: 12px; }
  .notice { margin: 12px 0; }
  .phone.auth-view { height: auto; min-height: 720px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .layer, .panel { transform: none !important; }
  .scene, .panel { transition: opacity .16s linear !important; }
  .field, .field-pan, .layer, .steps::after { transition: none !important; }
}
