/* YourAIYourChoice — one stylesheet, light and dark themes via CSS variables. */

:root {
  --header-h: 64px;
  --font: "Anek Bangla", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root,
[data-theme="light"] {
  --bg: #f6f6fa;
  --surface: #ffffff;
  --surface-2: #f0f0f7;
  --text: #191a2c;
  --muted: #5c5e75;
  --border: #e2e3ee;
  --accent: #4b45d6;
  --accent-hover: #3d37bd;
  --accent-soft: #ecebff;
  --on-accent: #ffffff;
  --success-bg: #e6f6ec;
  --success-text: #146c37;
  --error-bg: #fdecec;
  --error-text: #a12626;
  --shadow: 0 1px 2px rgba(20, 20, 50, 0.06), 0 4px 16px rgba(20, 20, 50, 0.05);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e1016;
  --surface: #161922;
  --surface-2: #1d212c;
  --text: #ebecf3;
  --muted: #a2a5b8;
  --border: #282c39;
  --accent: #8d86ff;
  --accent-hover: #a39dff;
  --accent-soft: #24234a;
  --on-accent: #0e1016;
  --success-bg: #12301f;
  --success-text: #7fe0a3;
  --error-bg: #3a1717;
  --error-text: #ff9b9b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.container { flex: 1; padding-top: 32px; padding-bottom: 56px; }

/* Header: logo in the centre */
.site-header {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.header-side { display: flex; align-items: center; gap: 12px; }
.header-divider { width: 1px; height: 24px; background: var(--border); }
.header-side form { margin: 0; }
.header-link { color: var(--text); font-weight: 500; }
.header-link:hover { color: var(--accent); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -0.01em; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; flex: none; transition: transform .3s ease; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-small { padding: 6px 14px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--text); cursor: pointer; }
.link-btn:hover { color: var(--accent); }

.chip {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.chip:hover { border-color: var(--accent); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="light"] .icon-sun, [data-theme="dark"] .icon-moon { display: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 20px; }
.messages li { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; background: var(--surface-2); }
.messages li.success { background: var(--success-bg); color: var(--success-text); }
.messages li.error { background: var(--error-bg); color: var(--error-text); }

/* Home */
.hero { padding: 36px 0 44px; max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 19px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.section-title { font-size: 24px; margin: 36px 0 16px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card.is-soon { opacity: 0.75; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }

.badge { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.badge-live { background: var(--success-bg); color: var(--success-text); }
.badge-soon { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 8px;
}
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

/* Forms and small pages */
.panel {
  max-width: 440px; margin: 16px auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow);
}
.panel-wide { max-width: 720px; }
.panel h1 { font-size: 26px; margin: 0 0 6px; }
.panel .lead { color: var(--muted); margin: 0 0 20px; }
.panel-foot { margin-top: 18px; color: var(--muted); text-align: center; }

form .field, form > div { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea, select {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.helptext, form .helptext ul { color: var(--muted); font-size: 14px; }
.field .helptext { margin-top: 8px; line-height: 1.5; }
form .helptext ul { margin: 6px 0 0; padding-left: 20px; }
.errorlist { list-style: none; padding: 10px 12px; margin: 0 0 10px; background: var(--error-bg); color: var(--error-text); border-radius: 10px; font-size: 15px; }

.info-list { list-style: none; padding: 0; margin: 0 0 20px; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-list li span:first-child { color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.empty { padding: 18px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); margin-bottom: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; }
.footer-inner { padding-top: 36px; padding-bottom: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer-inner p { margin: 0; max-width: 560px; }
.footer-brand { font-size: 18px; }
.footer-brand .brand-logo { width: 28px; height: 28px; }
.footer-tagline { color: var(--text); font-size: 15px; }
.footer-note { font-size: 13px; }
.footer-copy { font-size: 13px; padding-top: 14px; margin-top: 6px !important; border-top: 1px solid var(--border); width: 100%; max-width: 560px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .panel { padding: 22px; }
}

/* ---------- Menu button (three bars that turn into a cross) ---------- */
.menu-btn {
  display: none; position: relative; flex: none;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: background .25s ease, border-color .25s ease;
}
.menu-btn:hover { border-color: var(--accent); }
.menu-bar {
  position: absolute; left: 12px; width: 18px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .35s cubic-bezier(.68,-0.4,.27,1.4), opacity .2s ease, width .3s ease, top .3s ease;
}
.menu-bar:nth-child(1) { top: 15px; }
.menu-bar:nth-child(2) { top: 21px; width: 12px; left: 18px; }
.menu-bar:nth-child(3) { top: 27px; }
.menu-btn:hover .menu-bar:nth-child(2) { width: 18px; left: 12px; }
.menu-open .menu-btn { background: var(--accent-soft); border-color: var(--accent); }
.menu-open .menu-bar { background: var(--accent); }
.menu-open .menu-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-bar:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-open .menu-bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Side menu (phone) ---------- */
.drawer-overlay {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
  background: rgba(10, 10, 25, .35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s ease;
}
.drawer-overlay.is-visible { opacity: 1; }
.drawer {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; z-index: 45;
  width: min(86vw, 340px);
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(10, 10, 30, .18);
  padding: 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  transform: translateX(105%); visibility: hidden;
  transition: transform .45s cubic-bezier(.22,1,.36,1), visibility 0s linear .45s;
}
.menu-open .drawer, .drawer.is-open {
  transform: translateX(0); visibility: visible;
  transition: transform .45s cubic-bezier(.22,1,.36,1), visibility 0s;
}
.drawer > * { opacity: 0; transform: translateX(24px); transition: opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1); }
.drawer.is-open > * { opacity: 1; transform: none; }
.drawer.is-open > *:nth-child(1) { transition-delay: .08s; }
.drawer.is-open > *:nth-child(2) { transition-delay: .13s; }
.drawer.is-open > *:nth-child(3) { transition-delay: .18s; }
.drawer.is-open > *:nth-child(4) { transition-delay: .23s; }
.drawer.is-open > *:nth-child(5) { transition-delay: .28s; }
.drawer.is-open > *:nth-child(6) { transition-delay: .33s; }

.drawer-user {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px; background: var(--accent-soft);
}
.drawer-user strong { display: block; line-height: 1.3; word-break: break-word; }
.drawer-user small { color: var(--muted); word-break: break-all; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 18px;
}
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 10px; border-radius: 10px; color: var(--text); font-weight: 500;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.drawer-links a:hover { background: var(--surface-2); color: var(--accent); padding-left: 14px; }
.drawer-links svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.drawer-section {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px;
}
.drawer-label { font-weight: 500; }
.drawer form { margin: 0; }

/* Two-option language picker */
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.segmented button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px;
  padding: 4px 12px; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.segmented button.is-on { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* On/off switch for dark mode */
.switch {
  position: relative; width: 50px; height: 28px; flex: none; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  transition: background .3s ease, border-color .3s ease;
}
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--muted); transition: transform .35s cubic-bezier(.68,-0.4,.27,1.4), background .3s ease;
}
[data-theme="dark"] .switch { background: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .switch-knob { transform: translateX(22px); background: var(--on-accent); }

html.no-scroll { overflow: hidden; }

@media (max-width: 760px) {
  .header-side { display: none; }
  .menu-btn { display: inline-block; }
  .brand { font-size: 18px; }
}
@media (min-width: 761px) {
  .drawer, .drawer-overlay { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* Date of birth: day / month / year dropdowns */
.date-select { display: grid; grid-template-columns: 0.8fr 1.4fr 1fr; gap: 10px; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8ca3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
select:hover { border-color: var(--accent); }
.date-locked {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px dashed var(--border); font-weight: 600;
}
.date-locked svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

.actions-tight { margin-bottom: 8px; }
.date-select select { width: 100%; }

/* ---------- Homepage v2 ---------- */
:root { --claude: #d97757; }
.hero .powered {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-weight: 500; box-shadow: var(--shadow);
}
.powered-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--claude); box-shadow: 0 0 0 4px color-mix(in srgb, var(--claude) 22%, transparent); }
.claude-word { color: var(--claude); font-weight: 700; }
.hero .hero-sub { margin-bottom: 18px; }
.audience { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.audience li {
  padding: 6px 12px; border-radius: 999px; font-size: 15px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}

.section { padding: 12px 0 8px; }
.section-title.center { text-align: center; margin-top: 44px; }
.section-hint { text-align: center; color: var(--muted); margin: -6px 0 18px; }

.duration-switch {
  display: flex; width: fit-content; margin: 0 auto 22px; padding: 4px; gap: 4px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
}
.dur-btn {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.dur-btn.is-on { background: var(--accent); color: var(--on-accent); }

.plan-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); max-width: 820px; margin: 0 auto; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--shadow);
}
.plan-card.is-featured { border: 2px solid var(--accent); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.plan-card h3 { margin: 0; font-size: 24px; }
.plan-tagline { margin: 0; color: var(--muted); }
.plan-price { margin: 6px 0 4px; }
.plan-price .price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.plan-price .price-per { color: var(--muted); margin-left: 4px; }
.plan-points { list-style: none; padding: 0; margin: 4px 0 14px; flex: 1; }
.plan-points li { position: relative; padding: 7px 0 7px 28px; border-top: 1px solid var(--border); }
.plan-points li::before { content: "✓"; position: absolute; left: 4px; color: var(--success-text); font-weight: 700; }

.accordion { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.acc-item[open] { box-shadow: var(--shadow); }
.acc-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-weight: 600; font-size: 18px;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { background: var(--surface-2); }
.acc-icon { font-size: 22px; }
.acc-title { flex: 1; }
.acc-chevron { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s ease; margin-right: 4px; }
.acc-item[open] .acc-chevron { transform: rotate(-135deg); }
.acc-body { padding: 0 18px 16px; overflow-x: auto; }
.acc-note { margin: 0 0 10px; font-size: 14px; color: var(--muted); }

.feature-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.feature-table th, .feature-table td { padding: 10px 8px; border-top: 1px solid var(--border); text-align: center; vertical-align: middle; }
.feature-table thead th { border-top: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.feature-table tbody th { text-align: left; font-weight: 500; }
.feature-table thead th:first-child { text-align: left; }
.feature-table .col-pro { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.feature-table .group-row th { text-align: left; font-weight: 700; color: var(--accent); background: var(--surface-2); }
.feature-table .more-row td { text-align: left; color: var(--muted); font-style: italic; }
.tick { color: var(--success-text); font-weight: 700; }
.tick-note { display: block; font-size: 13px; color: var(--muted); }

.pro-extras {
  max-width: 820px; margin: 18px auto 0; padding: 18px 22px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.pro-extras h3 { margin: 0 0 8px; font-size: 18px; }
.pro-extras ul { margin: 0; padding-left: 20px; }
.pro-extras li { padding: 3px 0; }

.footer-legal { font-size: 12px; }

@media (max-width: 560px) {
  .plan-price .price { font-size: 34px; }
  .feature-table { font-size: 15px; }
  .acc-item summary { font-size: 17px; padding: 14px; }
  .acc-body { padding: 0 10px 12px; }
}

.model-chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.model-chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--claude) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--claude) 35%, transparent); color: var(--text);
}
.model-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--claude); }

.center-panel { text-align: center; }
.big-icon { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.hint-list { text-align: left; color: var(--muted); font-size: 15px; margin: 0 0 18px; padding-left: 20px; }
.form-aside { text-align: right; margin: -6px 0 14px; font-size: 15px; }
.panel-foot.small { font-size: 14px; margin-top: 10px; }
