/* ==========================================================================
   House of Liora: coming-soon page
   iOS-style "Liquid Glass" look in Liora white and green:
   frosted-glass panels over a softly drifting colour wallpaper,
   San Francisco type (Inter elsewhere), springy press feedback.
   ========================================================================== */
:root {
  --green-900: #0f3d1a;
  --green-700: #1f5a2a;
  --green-500: #2f8f3f;
  --green-300: #8cc63f;
  --lime: #c7dc4a;
  --pink: #e2517c;

  /* iOS semantic colours */
  --label: #1c1c1e;
  --label-2: rgba(60, 60, 67, 0.72);
  --label-3: rgba(60, 60, 67, 0.5);
  --separator: rgba(60, 60, 67, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", sans-serif;

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --gutter: clamp(16px, 3.5vw, 48px);
}

* { box-sizing: border-box; }
html { background: #fff; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  letter-spacing: -0.011em;
  color: var(--label);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
:focus-visible { outline: 3px solid rgba(47, 143, 63, 0.45); outline-offset: 2px; }

/* ---------- wallpaper ---------- */
.wallpaper { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #fff; }
.blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.blob--lime { top: -30vmax; left: -22vmax; background: radial-gradient(closest-side, rgba(199, 220, 74, 0.42), rgba(199, 220, 74, 0)); animation: drift-a 26s ease-in-out infinite alternate; }
.blob--green { bottom: -34vmax; right: -24vmax; background: radial-gradient(closest-side, rgba(47, 143, 63, 0.26), rgba(47, 143, 63, 0)); animation: drift-b 32s ease-in-out infinite alternate; }
.blob--mint { top: 20vh; right: 18vw; width: 46vmax; height: 46vmax; background: radial-gradient(closest-side, rgba(140, 198, 63, 0.2), rgba(140, 198, 63, 0)); animation: drift-c 22s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-7vmax, -5vmax) scale(1.12); } }
@keyframes drift-c { to { transform: translate(-10vmax, 8vmax) scale(0.9); } }

/* ---------- liquid glass ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 61, 26, 0.04),
    0 2px 6px rgba(15, 61, 26, 0.05),
    0 14px 40px -14px rgba(15, 61, 26, 0.22);
}
/* Springy press feedback, like iOS controls */
.press { transition: transform 0.35s var(--spring), background 0.2s ease, box-shadow 0.2s ease; }
.press:active:not(:disabled) { transform: scale(0.95); transition-duration: 0.1s; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: calc(10px + var(--sat)); z-index: 20;
  width: min(1180px, calc(100% - 2 * max(var(--gutter), var(--sal), var(--sar))));
  margin: calc(10px + var(--sat)) auto 0;
  height: 60px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px 0 22px;
}
.topbar__logo { height: 36px; width: auto; }
.tinted-btn {
  border: 0; cursor: pointer; border-radius: 999px; height: 44px; padding: 0 18px;
  font-weight: 600; font-size: 15px; color: var(--green-700);
  background: rgba(47, 143, 63, 0.12);
}
.tinted-btn:hover { background: rgba(47, 143, 63, 0.18); }

/* ---------- layout ---------- */
.page {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) max(var(--gutter), var(--sar)) clamp(32px, 4vw, 56px) max(var(--gutter), var(--sal));
}
.intro { display: flex; flex-direction: column; gap: 28px; }
.intro__body { max-width: 560px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--green-700);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }

/* iOS "Large Title": heavy, tight, confident */
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 6.3vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--label);
  margin: 0 0 20px;
}
.grad {
  background: linear-gradient(115deg, var(--green-500) 10%, var(--green-300) 55%, var(--lime) 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.04em; /* keeps the clipped gradient from shaving the last letter */
}
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; color: var(--label-2); margin: 0 0 28px; max-width: 46ch; }

/* ---------- countdown: glass widget tiles ---------- */
.countdown { display: flex; gap: 10px; margin: 0 0 24px; }
.countdown[hidden] { display: none; }
.countdown div {
  width: 84px; height: 84px; border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 30px -14px rgba(15, 61, 26, 0.25);
}
.countdown span { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--green-700); line-height: 1; }
.countdown small { font-size: 12px; font-weight: 600; color: var(--label-3); }

/* ---------- sign-up: glass capsule with a filled iOS button ---------- */
.notify { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; max-width: 500px; }
.notify input {
  flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent;
  font: 400 17px var(--font); letter-spacing: -0.011em; color: var(--label); padding: 0 16px;
}
.notify input::placeholder { color: var(--label-3); }
.notify button {
  flex: none; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 17px; color: #fff;
  background: linear-gradient(180deg, #37a049, var(--green-700));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px -6px rgba(31, 90, 42, 0.6);
}
.notify button:disabled { opacity: 0.55; cursor: default; }
.notify:focus-within { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(52, 199, 89, 0.22), 0 14px 40px -14px rgba(15, 61, 26, 0.22); }
.notify__msg { min-height: 22px; margin: 12px 0 0 18px; font-size: 15px; font-weight: 600; color: var(--green-700); }
.notify__msg.is-error { color: #d70015; }

/* ---------- inset grouped list (Settings app) ---------- */
.grouped { list-style: none; margin: 26px 0 0; padding: 0; border-radius: 22px; overflow: hidden; max-width: 500px; }
.grouped li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.grouped li + li::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--separator); transform: scaleY(0.5); transform-origin: top; }
.grouped strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.grouped small { display: block; font-size: 14px; color: var(--label-2); margin-top: 1px; }
.app-icon { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.app-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-icon--green { background: linear-gradient(180deg, #45b35a, var(--green-700)); }
.app-icon--lime { background: linear-gradient(180deg, #b5d648, #6fa52d); }
.app-icon--pink { background: linear-gradient(180deg, #f47aa0, var(--pink)); }

/* ---------- contact ---------- */
.contact { display: flex; flex-direction: column; gap: 14px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px; }
.contact__links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  text-decoration: none; color: var(--green-700); font-weight: 600; font-size: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 18px -10px rgba(15, 61, 26, 0.3);
  transition: transform 0.35s var(--spring);
}
.contact__links a:active { transform: scale(0.95); transition-duration: 0.1s; }
.contact__links svg { width: 17px; height: 17px; fill: currentColor; }
.copyright { margin: 0; font-size: 13px; color: var(--label-3); }

/* ---------- photo showcase ---------- */
.gallery { position: relative; }
.showcase {
  position: relative; /* offset parent for the page-dot maths in main.js */
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.25fr 1fr; gap: 14px;
  min-height: min(84vh, 820px);
  min-height: min(84svh, 820px);
}
.tile {
  position: relative; margin: 0; overflow: hidden; border-radius: 34px;
  background: rgba(241, 247, 236, 0.8);
  box-shadow: 0 1px 2px rgba(15, 61, 26, 0.06), 0 24px 50px -24px rgba(15, 61, 26, 0.35);
  isolation: isolate; /* keeps rounded clipping during transforms on Safari */
}
.tile > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile--hero { grid-column: 1 / -1; }
.tile--copy { display: none; } /* loop copies for the phone slider (main.js); hidden in the desktop grid */
.tile--a > img { object-position: 60% 50%; }
.tile--kids > img { object-position: 45% 50%; }
@media (hover: hover) { .tile:hover > img { transform: scale(1.04); } }

.chip { position: absolute; top: 16px; left: 16px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--green-900); }

/* iOS notification banner */
.notification {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 22px;
}
.notification__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.notification__icon img { width: 100%; height: auto; }
.notification__text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; color: var(--label-2); }
.notification__text strong { display: block; font-size: 14px; color: var(--label); }
.notification time { align-self: flex-start; font-size: 12px; color: var(--label-3); }

/* Page dots under the swipe gallery (phones only) */
.pager { display: none; }

/* ---------- product ticker ---------- */
.ticker {
  position: relative; overflow: hidden; padding: 15px 0 calc(15px + var(--sab));
  background: rgba(31, 90, 42, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  color: #fff;
}
.ticker__track { display: flex; width: max-content; animation: scroll 90s linear infinite; will-change: transform; }
.ticker span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; padding: 0 22px; white-space: nowrap; }
.ticker span::after { content: "•"; color: var(--lime); margin-left: 44px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- dock + toast (phones) ---------- */
.dock { display: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--sab)); z-index: 40; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--green-900);
  animation: toast-in 0.45s var(--spring);
}
.toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(0.9); } }

/* ---------- entrance: fade + de-blur on a spring, like iOS ---------- */
.topbar, .intro__body > *, .contact, .tile {
  animation: rise 0.9s var(--ease) both;
}
.intro__body > *:nth-child(2) { animation-delay: 0.05s; }
.intro__body > *:nth-child(3) { animation-delay: 0.1s; }
.intro__body > *:nth-child(n + 4) { animation-delay: 0.15s; }
.tile--hero { animation-delay: 0.12s; }
.tile--a { animation-delay: 0.2s; }
.tile--kids { animation-delay: 0.28s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(6px); } }

/* ---------- touch ---------- */
@media (hover: none) { .tinted-btn:hover { background: rgba(47, 143, 63, 0.12); } }

/* ---------- tablet & phone ---------- */
@media (max-width: 960px) {
  .page { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .intro__body { max-width: none; }
  .showcase { min-height: 0; grid-template-rows: 300px 240px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { padding-bottom: calc(84px + var(--sab)); } /* room for the dock */
  .topbar { height: 56px; padding-left: 18px; }
  .topbar__logo { height: 32px; }
  .tinted-btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .page { gap: 28px; padding-bottom: 24px; }
  .eyebrow { font-size: 13px; }
  h1 { font-size: clamp(42px, 12.5vw, 54px); }

  /* Swipeable, edge-to-edge gallery with page dots */
  .showcase {
    display: flex; gap: 12px; min-height: 0;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin: 0 -16px; padding: 4px 16px 18px;
    scrollbar-width: none;
    contain: inline-size; /* size from the screen, not the row of photos (stops the page widening) */
  }
  .showcase::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 86%; height: 380px; scroll-snap-align: center; border-radius: 30px; }
  .tile--copy { display: block; }
  .tile, .tile--copy { animation: none; } /* no entrance animation inside the looping slider */
  .pager { display: flex; gap: 7px; width: max-content; margin: 2px auto 0; padding: 7px 10px; border-radius: 999px; }
  .pager span { width: 7px; height: 7px; border-radius: 999px; background: rgba(60, 60, 67, 0.25); transition: width 0.35s var(--spring), background 0.2s; }
  .pager span.is-active { width: 20px; background: var(--green-700); }

  /* Floating glass dock, like Safari's bottom toolbar */
  .dock:not([hidden]) {
    position: fixed; z-index: 30;
    left: max(16px, var(--sal)); right: max(16px, var(--sar)); bottom: calc(12px + var(--sab));
    height: 64px; border-radius: 999px; padding: 6px;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  }
  .dock a, .dock button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: transparent; border-radius: 999px; cursor: pointer;
    color: var(--green-700); text-decoration: none; font-size: 11px; font-weight: 600;
  }
  .dock a:active, .dock button:active { background: rgba(47, 143, 63, 0.12); }
  .dock svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ticker { padding-bottom: 15px; }
}

@media (max-width: 360px) {
  .notify { flex-direction: column; align-items: stretch; border-radius: 26px; }
  .notify button { width: 100%; }
  .countdown div { width: 22%; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
