/* ============================================================
   auth.css — Claymorphism theme for login / signup / payment
   Soft, puffy, light surfaces. Navy + green from the SK logo.
   ============================================================ */
:root {
  --bg-a: #e8f6ee;
  --bg-b: #e3ecfa;
  --clay: #f5faf7;
  --clay-in: #e6f1eb;
  --ink: #14305f;
  --ink-2: #4b6283;
  --green: #27a548;
  --green-hi: #52d46f;
  --navy: #0f2a5c;
  --line: rgba(20, 48, 95, .10);
  --sh-dark: rgba(31, 74, 120, .20);
  --sh-light: rgba(255, 255, 255, .95);
  --danger: #c0392b;
  --r-lg: 36px;
  --r-md: 22px;
  --r-sm: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.clay {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-a) 0%, var(--bg-b) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; letter-spacing: .005em; }
a { color: var(--green); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Floating clay shapes (parallax on scroll) ─────────────── */
.clay-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute; border-radius: 50%;
  will-change: transform;
  box-shadow:
    inset 10px 12px 22px rgba(255,255,255,.55),
    inset -14px -16px 30px rgba(0,0,0,.14),
    18px 24px 40px rgba(31,74,120,.18);
}
.blob.b1 { width: 260px; height: 260px; left: -70px;  top: 8%;   background: linear-gradient(145deg,#7be394,#27a548); }
.blob.b2 { width: 190px; height: 190px; right: -50px; top: 22%;  background: linear-gradient(145deg,#4f78c9,#14305f); }
.blob.b3 { width: 120px; height: 120px; left: 12%;    top: 70%;  background: linear-gradient(145deg,#ffffff,#cfe3d8); }
.blob.b4 { width: 220px; height: 220px; right: 6%;    top: 78%;  background: linear-gradient(145deg,#9be9ad,#2fb351); }
.blob.b5 { width: 90px;  height: 90px;  right: 23%;   top: 62%;   background: linear-gradient(145deg,#6d93dc,#1c3f86); }

/* ── Layout ────────────────────────────────────────────────── */
.page { position: relative; z-index: 1; }
.hero {
  min-height: 100vh; display: grid; place-items: center;
  padding: 2rem 1rem 4.5rem; position: relative;
}
.hero.top { place-items: start center; padding-top: 1.5rem; }
.wrap { width: 100%; max-width: 460px; }
.wrap.wide { max-width: 980px; }
.wrap.mid  { max-width: 620px; }
.scroll-hint {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-size: .78rem; color: var(--ink-2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.scroll-hint i {
  width: 26px; height: 40px; border-radius: 16px; background: var(--clay);
  box-shadow: 5px 6px 12px var(--sh-dark), -4px -4px 10px var(--sh-light), inset 2px 2px 4px rgba(255,255,255,.9);
  position: relative;
}
.scroll-hint i::after {
  content: ''; position: absolute; left: 50%; top: 9px; width: 6px; height: 10px; margin-left: -3px;
  border-radius: 4px; background: var(--green); animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: .35; } }

/* ── The clay card ─────────────────────────────────────────── */
.card-clay {
  background: var(--clay);
  border-radius: var(--r-lg);
  padding: 2.1rem 2rem 2rem;
  box-shadow:
    22px 26px 50px var(--sh-dark),
    -14px -14px 34px var(--sh-light),
    inset 6px 6px 14px rgba(255,255,255,.9),
    inset -8px -10px 20px rgba(31,74,120,.06);
}
.card-clay + .card-clay { margin-top: 1.5rem; }
.logo-tile {
  width: 168px; height: 168px; margin: -4.4rem auto 1rem;
  background: #fff; border-radius: 44px; padding: 10px;
  box-shadow: 14px 18px 32px var(--sh-dark), -8px -8px 22px var(--sh-light), inset 4px 4px 10px rgba(255,255,255,1), inset -6px -6px 14px rgba(31,74,120,.07);
  display: grid; place-items: center;
}
.logo-tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 34px; display: block; }
.logo-top { display: block; width: 128px; height: 128px; margin: 0 auto 1.1rem; background: #fff; padding: 8px; border-radius: 34px; object-fit: contain;
  box-shadow: 10px 12px 24px var(--sh-dark), -7px -7px 18px var(--sh-light), inset 3px 3px 8px #fff, inset -4px -5px 10px rgba(31,74,120,.07); }
.title { font-size: 1.85rem; text-align: center; line-height: 1.2; }
.sub   { text-align: center; color: var(--ink-2); margin: .35rem 0 1.5rem; font-size: .98rem; }

/* ── Form controls (inset clay) ────────────────────────────── */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 800; color: var(--ink); margin: 0 0 .4rem .5rem; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--clay-in); border: 2px solid transparent; border-radius: var(--r-sm);
  padding: .85rem 1.1rem;
  box-shadow: inset 5px 5px 11px rgba(31,74,120,.13), inset -5px -5px 11px rgba(255,255,255,.95);
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314305f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.6rem;
}
.input::placeholder { color: #8fa1ba; font-weight: 600; }
.input:focus { outline: none; border-color: var(--green-hi); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* ── Buttons (puffy) ───────────────────────────────────────── */
.btn-clay {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; border: 0;
  padding: .95rem 1.7rem; border-radius: 22px; color: #fff; text-decoration: none;
  background: linear-gradient(145deg, var(--green-hi), var(--green));
  box-shadow: 9px 12px 22px rgba(39,165,72,.34), -6px -6px 14px var(--sh-light),
              inset 3px 3px 7px rgba(255,255,255,.5), inset -5px -6px 10px rgba(0,0,0,.14);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-clay:hover { transform: translateY(-3px); text-decoration: none; }
.btn-clay:active { transform: translateY(1px); box-shadow: 3px 4px 8px rgba(39,165,72,.3), inset 4px 5px 10px rgba(0,0,0,.18); }
.btn-clay[disabled] { opacity: .65; cursor: wait; transform: none; }
.btn-clay.block { width: 100%; }
.btn-clay.navy {
  background: linear-gradient(145deg, #3d63b4, var(--navy));
  box-shadow: 9px 12px 22px rgba(15,42,92,.32), -6px -6px 14px var(--sh-light), inset 3px 3px 7px rgba(255,255,255,.28), inset -5px -6px 10px rgba(0,0,0,.2);
}
.btn-clay.soft {
  color: var(--ink); background: var(--clay);
  box-shadow: 7px 9px 18px var(--sh-dark), -6px -6px 14px var(--sh-light), inset 2px 2px 6px #fff, inset -3px -4px 8px rgba(31,74,120,.06);
}
.link-row { text-align: center; font-size: .9rem; color: var(--ink-2); margin-top: 1.3rem; }
.link-right { text-align: right; margin: -.3rem .5rem 1.1rem 0; font-size: .85rem; }

/* ── Notices ───────────────────────────────────────────────── */
.note {
  border-radius: var(--r-sm); padding: .8rem 1.1rem; margin-bottom: 1.2rem; font-size: .92rem; font-weight: 700;
  box-shadow: inset 3px 3px 8px rgba(31,74,120,.10), inset -3px -3px 8px rgba(255,255,255,.9);
}
.note.err  { background: #fbe9e6; color: var(--danger); }
.note.ok   { background: #e2f6e8; color: #1c7a37; }
.note.info { background: #e6eefb; color: #25508f; }

/* ── Stepper (signup flow) ─────────────────────────────────── */
.stepper-bar {
  position: sticky; top: 0; z-index: 20; padding: .9rem 1rem;
  background: linear-gradient(180deg, rgba(232,246,238,.92), rgba(232,246,238,.55) 80%, transparent);
  backdrop-filter: blur(6px);
}
.stepper {
  max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
  position: relative;
}
.step { text-align: center; position: relative; font-size: .78rem; font-weight: 800; color: var(--ink-2); }
.step .dot {
  width: 42px; height: 42px; margin: 0 auto .35rem; border-radius: 50%;
  display: grid; place-items: center; font-family: 'Fredoka', sans-serif; font-size: 1.05rem; color: var(--ink-2);
  background: var(--clay);
  box-shadow: 6px 7px 14px var(--sh-dark), -5px -5px 11px var(--sh-light), inset 2px 2px 5px #fff;
  position: relative; z-index: 2;
}
.step.done .dot { color: #fff; background: linear-gradient(145deg, var(--green-hi), var(--green)); box-shadow: 6px 8px 14px rgba(39,165,72,.3), inset 2px 2px 5px rgba(255,255,255,.5), inset -3px -4px 7px rgba(0,0,0,.14); }
.step.now .dot  { color: #fff; background: linear-gradient(145deg, #3d63b4, var(--navy)); box-shadow: 6px 8px 16px rgba(15,42,92,.35), inset 2px 2px 5px rgba(255,255,255,.3), inset -3px -4px 7px rgba(0,0,0,.2); transform: scale(1.1); }
.step.now { color: var(--navy); }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 19px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 5px; border-radius: 4px;
  background: var(--clay-in); box-shadow: inset 1px 1px 3px rgba(31,74,120,.15);
}
.step.done:not(:last-child)::after { background: var(--green-hi); box-shadow: none; }

/* ── Plan picker ───────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.plan { position: relative; cursor: pointer; }
.plan input { position: absolute; opacity: 0; inset: 0; }
.plan span {
  display: block; text-align: center; padding: .9rem .4rem; border-radius: var(--r-md); background: var(--clay);
  box-shadow: 6px 8px 16px var(--sh-dark), -5px -5px 12px var(--sh-light), inset 2px 2px 6px #fff;
  font-size: .8rem; font-weight: 700; color: var(--ink-2); transition: transform .18s, box-shadow .18s;
}
.plan b { display: block; font-family: 'Fredoka', sans-serif; font-size: .98rem; color: var(--ink); font-weight: 600; }
.plan em { display: block; font-style: normal; font-size: 1.05rem; font-weight: 800; color: var(--green); margin-top: .1rem; }
.plan input:checked + span {
  transform: translateY(2px); color: var(--navy);
  box-shadow: inset 5px 6px 12px rgba(31,74,120,.16), inset -5px -5px 11px #fff, 0 0 0 3px var(--green-hi);
}
.plan input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 3px; }

/* ── Feature cards (login page, below the fold) ────────────── */
.section { position: relative; z-index: 1; padding: 4rem 1rem 3rem; }
.section h2 { text-align: center; font-size: 1.9rem; margin-bottom: .4rem; }
.section .lead { text-align: center; color: var(--ink-2); max-width: 540px; margin: 0 auto 2.4rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 980px; margin: 0 auto; }
.feature { text-align: center; padding: 2rem 1.4rem; }
.feature .ico {
  width: 74px; height: 74px; margin: 0 auto 1rem; border-radius: 26px; display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(145deg, #ffffff, #dcebe3);
  box-shadow: 8px 10px 18px var(--sh-dark), -6px -6px 14px var(--sh-light), inset 3px 3px 7px #fff, inset -4px -5px 9px rgba(31,74,120,.08);
}
.feature h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.feature p  { color: var(--ink-2); font-size: .93rem; }
.cta { max-width: 760px; margin: 3rem auto 0; text-align: center; padding: 2.4rem 1.6rem; }
.cta h2 { font-size: 1.6rem; }
.foot { position: relative; z-index: 1; text-align: center; padding: 1.5rem 1rem 2.5rem; font-size: .82rem; color: var(--ink-2); }
.foot a { margin: 0 .55rem; }

/* ── Checkout ──────────────────────────────────────────────── */
.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.price { font-family: 'Fredoka', sans-serif; font-size: 2.3rem; font-weight: 600; color: var(--navy); margin: .3rem 0 .6rem; }
.price small { font-size: 1rem; color: var(--ink-2); font-weight: 500; }
.ticks { list-style: none; display: grid; gap: .55rem; margin: 1rem 0; }
.ticks li { display: flex; gap: .6rem; align-items: center; font-size: .93rem; font-weight: 600; }
.ticks li::before { content: '✓'; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem;
  background: linear-gradient(145deg, var(--green-hi), var(--green)); box-shadow: 2px 3px 6px rgba(39,165,72,.3), inset 1px 1px 3px rgba(255,255,255,.5); }
.sumbox { background: var(--clay-in); border-radius: var(--r-md); padding: 1rem 1.2rem; margin: 1.2rem 0;
  box-shadow: inset 5px 5px 11px rgba(31,74,120,.10), inset -5px -5px 11px rgba(255,255,255,.95); }
.sumbox div { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; padding: .15rem 0; }
.sumbox .tot { border-top: 2px dashed var(--line); margin-top: .55rem; padding-top: .7rem; font-size: 1.08rem; color: var(--navy); }
.pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.pills .btn-clay { padding: .55rem 1rem; font-size: .85rem; border-radius: 16px; }

/* ── Scroll reveal ─────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(34px) scale(.965); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .features, .checkout { grid-template-columns: 1fr; }
  .blob.b1 { width: 170px; height: 170px; }
  .blob.b2 { width: 130px; height: 130px; }
  .blob.b4 { width: 150px; height: 150px; }
}
@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .card-clay { padding: 1.7rem 1.25rem 1.5rem; border-radius: 30px; }
  .step { font-size: .68rem; }
  .step .dot { width: 36px; height: 36px; }
  .step:not(:last-child)::after { top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint i::after, .btn-clay { animation: none; transition: none; }
}

/* logo tile pokes out of the top of the card */
.has-logo { margin-top: 4.6rem; }
.has-logo .logo-tile { margin-top: -6rem; }
