/* xamally.com: same palette and type as the app (src/constants/theme.ts). */

@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/Sora_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/Sora_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --text: #1b1a29;
  --text-2: #66637a;
  --bg: #fbfaf7;
  --card: #ffffff;
  --primary: #4f46e5;
  --primary-deep: #3730a3;
  --primary-soft: #eeedfd;
  --gold: #f0a21d;
  --gold-soft: #fdf1da;
  --gold-ink: #2b1b00;
  --border: #e3e0ee;
  --success: #0e9f6e;
  --shadow-sm: 0 1px 3px rgba(33, 31, 53, 0.07);
  --shadow-md: 0 6px 18px rgba(33, 31, 53, 0.08), 0 1px 3px rgba(33, 31, 53, 0.06);
  --shadow-lg: 0 24px 60px rgba(49, 42, 140, 0.22), 0 8px 20px rgba(33, 31, 53, 0.1);
  --radius: 20px;
  --display: 'Sora', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}
.narrow {
  width: min(760px, 100% - 40px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 20;
}
.skip:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(227, 224, 238, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand img {
  height: 34px;
  width: auto;
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a,
.lang {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover {
  color: var(--primary);
}
.langs {
  display: flex;
  gap: 8px;
}
.lang {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.lang:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font: 700 16px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #5b53ee 0%, var(--primary) 55%, #4038d4 100%);
  box-shadow:
    0 8px 20px rgba(79, 70, 229, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(79, 70, 229, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 820px;
  height: 820px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(79, 70, 229, 0.18), transparent 70%),
    radial-gradient(closest-side at 70% 70%, rgba(240, 162, 29, 0.14), transparent 70%);
  filter: blur(10px);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.eyebrow-gold {
  color: #b8740a;
}
h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.lead {
  font-size: 19px;
  color: var(--text-2);
  margin-top: 20px;
  max-width: 34em;
}

/* Waitlist */
.waitlist {
  margin-top: 32px;
  max-width: 520px;
}
.waitlist-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.waitlist input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font: 500 16px var(--body);
  color: var(--text);
}
.waitlist input:focus {
  outline: none;
}
.waitlist-row:focus-within {
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px rgba(79, 70, 229, 0.14),
    var(--shadow-md);
}
.waitlist-note {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 10px;
  padding-left: 6px;
}
.waitlist-note.is-success {
  color: var(--success);
  font-weight: 700;
}
.waitlist-note.is-error {
  color: #c02626;
  font-weight: 600;
}
.waitlist.is-done .waitlist-row {
  display: none;
}

.stores {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 12px;
  background: #16151f;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  opacity: 0.9;
}
.store small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.store-icon {
  width: 24px;
  height: 24px;
}

/* Phone mockup (the app's Today screen) */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone {
  width: 330px;
  padding: 12px;
  border-radius: 52px;
  background: linear-gradient(145deg, #2d2b3d, #121119);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  transform: rotate(2deg);
}
.phone-screen {
  position: relative;
  height: 660px;
  overflow: hidden;
  border-radius: 41px;
  background: var(--bg);
  padding: 14px 18px 0;
  font-size: 13px;
  line-height: 1.35;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  padding: 2px 8px 14px;
}
.phone-notch {
  width: 96px;
  height: 26px;
  border-radius: 20px;
  background: #121119;
}
.phone-icons {
  display: flex;
  gap: 4px;
}
.phone-icons i {
  width: 14px;
  height: 9px;
  border-radius: 2px;
  background: var(--text);
  opacity: 0.85;
}
.app-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.app-date {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 12px;
}
.goal-card {
  border-radius: 20px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(160deg, #5c54f0 0%, var(--primary) 50%, #3f37cf 100%);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
}
.goal-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.goal-count {
  margin-top: 4px;
}
.goal-count strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.03em;
}
.goal-count span {
  font-weight: 700;
  opacity: 0.85;
  font-size: 13px;
}
.goal-bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  margin: 8px 0 10px;
  overflow: hidden;
}
.goal-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}
.goal-left {
  font-weight: 600;
}
.goal-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-size: 12px;
}
.thought-card {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: var(--primary-soft);
}
.thought-art {
  position: relative;
  width: 58px;
  height: 40px;
  flex: none;
}
.thought-art i {
  position: absolute;
  height: 6px;
  border-radius: 9px;
  background: #8f89f3;
}
.thought-art i:nth-child(1) {
  width: 22px;
  left: 0;
  bottom: 4px;
  opacity: 0.5;
}
.thought-art i:nth-child(2) {
  width: 22px;
  left: 12px;
  bottom: 14px;
  opacity: 0.8;
}
.thought-art i:nth-child(3) {
  width: 22px;
  left: 24px;
  bottom: 24px;
  background: var(--primary);
}
.thought-art b {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 162, 29, 0.25);
}
.thought-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.thought-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
}
.app-section {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  margin: 16px 0 8px;
}
.session-card {
  position: relative;
  padding: 12px 14px 12px 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.session-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #2563eb;
}
.session-card-2::before {
  background: #0e9f6e;
}
.session-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.session-head strong {
  font-size: 15px;
}
.session-time {
  color: var(--text-2);
  margin-top: 2px;
}
.session-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.mini-btn {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 700;
}
.mini-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
}
.chip-info {
  background: var(--primary-soft);
  color: var(--primary);
}
.chip-gold {
  background: var(--gold-soft);
  color: #8a5700;
  font-size: 13px;
  padding: 5px 12px;
}
.chip-icon {
  width: 15px;
  height: 15px;
}
.phone-fab {
  position: absolute;
  right: 16px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-ink);
  background: radial-gradient(circle at 35% 30%, #ffc75a, var(--gold) 60%, #d98a0c);
  box-shadow: 0 10px 20px rgba(217, 138, 12, 0.4);
}
.fab-icon {
  width: 24px;
  height: 24px;
}

/* Sections */
.section {
  padding: 96px 0;
}
.section-tint {
  background: linear-gradient(180deg, #f4f2fd 0%, #f8f7fb 100%);
  border-block: 1px solid #ecebf5;
}
.section-title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 18px;
  margin-top: 12px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 18px;
  font: 800 20px var(--display);
  color: #fff;
  background: linear-gradient(160deg, #6a63f2, var(--primary));
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3);
}
.step h3,
.feature h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p,
.feature p {
  color: var(--text-2);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature {
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--primary);
  background: var(--primary-soft);
}
.icon {
  width: 26px;
  height: 26px;
}

.promise {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: 32px;
  background: radial-gradient(120% 140% at 100% 0%, #fff4df 0%, #fdf1da 45%, #fbe6be 100%);
  box-shadow: 0 20px 50px rgba(176, 116, 10, 0.14);
}
.promise h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
}
.promise .lead {
  color: #5b4a2c;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}
.check {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--primary);
  margin-top: 2px;
}
.checks-gold .check {
  color: #c07a07;
}
.promise-visual {
  display: flex;
  justify-content: center;
}
.promise-card {
  width: min(340px, 100%);
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 40px rgba(120, 80, 10, 0.18);
  transform: rotate(-2deg);
}
.promise-card p {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin: 16px 0;
  line-height: 1.35;
}
.promise-video {
  height: 150px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b347f 0%, #6d63e8 55%, #f0a21d 140%);
}
.play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.play::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 17px;
  border-left: 17px solid var(--primary);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}
.plan {
  position: relative;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.plan-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 18px 44px rgba(79, 70, 229, 0.18);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.plan h3 {
  font-size: 24px;
  font-weight: 800;
}
.plan-tagline {
  color: var(--text-2);
  margin-top: 6px;
}
.price {
  margin-top: 18px;
}
.price strong {
  font: 800 40px var(--display);
  letter-spacing: -0.03em;
}
.price span {
  color: var(--text-2);
  font-weight: 600;
}
.fine {
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  margin-top: 24px;
}

.faq {
  margin-top: 40px;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 0;
  font-weight: 700;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 16px;
  font: 400 26px var(--body);
  color: var(--primary);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 20px;
  color: var(--text-2);
}

.cta {
  text-align: center;
  padding: 72px 32px;
  border-radius: 32px;
  color: #fff;
  background: radial-gradient(120% 160% at 0% 0%, #6a63f2 0%, var(--primary) 45%, #2e2896 100%);
  box-shadow: var(--shadow-lg);
}
.cta h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}
.cta > p {
  opacity: 0.85;
  margin-top: 12px;
  font-size: 18px;
}
.cta .waitlist {
  margin: 28px auto 0;
}
.cta .waitlist-note {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.cta .waitlist-note.is-success {
  color: #b8f5d9;
}
.cta .waitlist-note.is-error {
  color: #ffd3d3;
}
.cta .btn-primary {
  background: linear-gradient(180deg, #ffc350, var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.site-footer {
  background: #131220;
  color: #a8a5c2;
  padding: 48px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}
.footer-links a {
  color: #e6e4f3;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.copyright {
  width: 100%;
  font-size: 14px;
}

/* Documents (privacy, terms, support) */
.doc {
  padding: 64px 0 40px;
}
.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
}
.doc h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 12px;
}
.doc p,
.doc li {
  color: #3d3b4f;
}
.doc p + p {
  margin-top: 12px;
}
.doc ol {
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.doc-updated {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 10px;
}
.doc .fine {
  text-align: left;
}
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--primary-soft);
  border-radius: 16px;
  font-weight: 700;
}
.contact-card span {
  color: var(--text-2);
  font-weight: 600;
}
.not-found {
  text-align: center;
  padding: 120px 0;
}
.not-found .btn {
  margin: 20px 6px 0;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .langs {
    margin-left: auto;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-inner,
  .promise {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 12px;
  }
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .plans {
    grid-template-columns: minmax(0, 440px);
  }
  .promise {
    padding: 36px 24px;
  }
  .section {
    padding: 72px 0;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .waitlist-row {
    flex-direction: column;
    padding: 8px;
  }
  .waitlist input {
    min-height: 48px;
  }
  .phone {
    width: 300px;
    transform: none;
  }
  .phone-screen {
    height: 600px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
