/* Aviary Hosting shop: the main website's look, applied over Paymenter's stock theme.
 *
 * Loaded by theme-overrides/views/layouts/app.blade.php AFTER Paymenter's own
 * colour block, so everything here wins. The stock theme is built from Tailwind
 * utilities that read these CSS variables (hsl(var(--color-x))), so most of the
 * restyle is just new variable values; the rest is a handful of selectors for the
 * page gradient, frosted cards, the pale primary button and Jost headings.
 *
 * Source of the look: the website's src/styles/global.css (night sky to horizon
 * blue, pale-blue buttons, Jost). Keep the two in step by eye; there is no build.
 * Plain CSS only (no @apply, no build), and nothing here may need a Tailwind class
 * that the default theme did not already compile.
 */
/* One variable font file covers every weight. */
@font-face { font-family: "Jost"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("/aviary/fonts/jost-latin.woff2") format("woff2"); }

:root {
  --av-ink: #060a2c;
  --av-cyan: #8cc8f3;
  --av-display: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Colours, dark (the default) --------------------------------------------- */
.dark {
  --color-primary: 207 76% 72%;          /* links and accents: #8cc8f3-ish */
  --color-secondary: 175 64% 47%;        /* teal, Aviary Hosting's own colour */
  --color-neutral: 214 52% 30%;          /* borders */
  --color-base: 207 70% 96%;             /* text: #e8f3fc */
  --color-muted: 207 45% 84%;            /* secondary text */
  --color-inverted: 207 40% 74%;
  --color-background: 233 76% 10%;       /* #060a2c */
  --color-background-secondary: 231 66% 17%;
}

/* The page: one sky, deep night at the top to horizon blue at the bottom --- */
.dark body, body.dark {
  background-color: #060a2c;
  background-image: linear-gradient(180deg, #060a2c 0%, #0d1a58 28%, #1b4a8f 62%, #2e76ad 100%);
  background-repeat: no-repeat;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3, h4, nav a span.text-xl, .av-display { font-family: var(--av-display); letter-spacing: -0.012em; }
h1 { font-weight: 600; }
.dark h1 { padding-bottom: 0.14em; line-height: 1.2; background: linear-gradient(180deg, #ffffff 10%, #bcdcf4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Navigation and footer sit on the sky instead of being solid bars -------- */
.dark nav.fixed { background: rgba(8, 14, 54, 0.94); border-bottom-color: rgba(232, 243, 252, 0.12); }
.dark footer { background: transparent; border-top: 1px solid rgba(232, 243, 252, 0.14); }
.dark footer, .dark footer * { border-color: rgba(232, 243, 252, 0.14); }

/* Cards: frosted, the same as the website's ----------------------------- */
.dark main .bg-background-secondary {
  background: linear-gradient(180deg, rgba(232, 243, 252, 0.09), rgba(12, 19, 64, 0.5));
  border-color: rgba(232, 243, 252, 0.16);
  box-shadow: inset 0 1px 0 rgba(232, 243, 252, 0.14);
  border-radius: 16px;
}
.dark main .hover\:bg-background-secondary\/80:hover { background: linear-gradient(180deg, rgba(232, 243, 252, 0.13), rgba(12, 19, 64, 0.55)); }
/* Dropdowns and menus stay solid so text over them is always readable. */
.dark nav .bg-background-secondary { background: #0b1340; }

/* Inputs --------------------------------------------------------------- */
.dark input:not([type="checkbox"]):not([type="radio"]), .dark select, .dark textarea { background-color: rgba(6, 10, 44, 0.55); border-color: rgba(232, 243, 252, 0.2); }
.dark input:focus, .dark select:focus, .dark textarea:focus { outline: 2px solid var(--av-cyan); outline-offset: 2px; border-color: var(--av-cyan); }

/* Buttons: the primary one wears the website's pale-blue gradient --------- */
.dark a.bg-primary, .dark button.bg-primary, .dark .bg-primary.cursor-pointer {
  background-image: linear-gradient(180deg, #f2f8fd 0%, #a9d0ef 100%);
  background-color: #a9d0ef;
  color: #06104a;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(75, 147, 209, 0.28);
}
.dark a.bg-primary:hover, .dark button.bg-primary:hover, .dark .bg-primary.cursor-pointer:hover { filter: brightness(1.05); background-color: #a9d0ef; }
.dark .bg-primary.bg-red-700 { background-image: none; background-color: #b91c1c; color: #fff; box-shadow: none; }
/* Secondary buttons: a quiet outline, like the website's ghost button */
.dark button.bg-secondary, .dark a.bg-secondary { border-radius: 999px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Plan cards (PlanCards.php, products/index and show views) ----------------- */
.av-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 820px) { .av-plan-grid { grid-template-columns: 1fr; } }
.av-plan { position: relative; padding: 26px 24px 22px; }
.av-plan__size { font-family: var(--av-display); font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.av-plan__tier { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--av-display); font-weight: 500; color: hsl(var(--color-muted)); margin-top: 6px; }
.av-plan__tier--page { margin-top: 2px; margin-bottom: 6px; }
.av-plan__desc { margin-top: 14px; font-size: 15.5px; }
.av-plan__desc ul { margin-top: 10px; }
.av-plan--pick { border-color: rgba(43, 196, 184, 0.7) !important; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(232, 243, 252, 0.14); }
.av-plan__flag { position: absolute; top: -13px; left: 22px; background: #2bc4b8; color: #021f1d; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.av-badge { display: inline-block; margin-left: 10px; background: #2bc4b8; color: #021f1d; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }

/* The stock "In stock" / "Sold out" pills: quiet, no traffic-light colours ---- */
.dark .bg-green-900 { background: rgba(232, 243, 252, 0.14); color: #e8f3fc; }
.dark .text-green-300 { color: #e8f3fc; }

/* Plan card details ------------------------------------------------------ */
.av-plan .bg-red-900 { position: absolute; top: 24px; right: 22px; margin: 0; }
.av-plan__desc ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.av-plan__desc li { position: relative; padding-left: 26px; margin: 0; }
.av-plan__desc li::before { content: ""; position: absolute; left: 3px; top: 0.55em; width: 11px; height: 6px; border-left: 2px solid #2bc4b8; border-bottom: 2px solid #2bc4b8; transform: rotate(-45deg); }
.av-plan__desc li::marker { content: ""; }
.av-plan h3 { margin-top: auto; padding-top: 18px; }
/* Sold out: a quiet amber note rather than a red block */
.dark .bg-red-900 { background: rgba(242, 178, 76, 0.14); color: #f2b24c; border: 1px solid rgba(242, 178, 76, 0.35); }
.dark .text-red-300 { color: #f2b24c; }

/* Home hero: on the sky, with the Peacock glowing beside the text ----------- */
.dark .av-hero { background: none; border: 0; box-shadow: none; border-radius: 0; padding-top: 56px; padding-bottom: 24px; }
.av-hero__bird { width: 200px; height: 200px; flex: none; border-radius: 50%; object-fit: contain; filter: drop-shadow(0 18px 50px rgba(43, 196, 184, 0.45)); }
.av-hero .prose h1, .av-hero .prose h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; }
.av-hero .prose a { color: #8cc8f3; }

/* Tick boxes and radios (policy agreements, plan-size helper, checkout options)
   need a visible edge on the dark sky. */
.dark input[type="checkbox"], .dark input[type="radio"] { border: 1.5px solid rgba(232, 243, 252, 0.6); background-color: rgba(6, 10, 44, 0.55); accent-color: #8cc8f3; }
.dark input[type="checkbox"]:checked, .dark input[type="radio"]:checked { background-color: #8cc8f3; border-color: #8cc8f3; }

/* "Included with every plan" panel and the size note ---------------------- */
.av-included { margin-top: 8px; border: 1px solid rgba(232, 243, 252, 0.16); border-radius: 16px; background: linear-gradient(180deg, rgba(232, 243, 252, 0.09), rgba(12, 19, 64, 0.5)); box-shadow: inset 0 1px 0 rgba(232, 243, 252, 0.14); overflow: hidden; }
.av-included__title { font-family: var(--av-display); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #8cc8f3; padding: 22px 26px 0; font-weight: 600; }
.av-included__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.av-included__list li { padding: 18px 26px 24px; border-right: 1px solid rgba(232, 243, 252, 0.12); }
.av-included__list li:last-child { border-right: 0; }
.av-included__list h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.av-included__list h3::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; margin-bottom: 12px; background: linear-gradient(90deg, #2bc4b8, #8cc8f3); }
.av-included__list p { font-size: 14.5px; line-height: 1.6; color: hsl(var(--color-muted)); }
@media (max-width: 960px) {
  .av-included__list { grid-template-columns: 1fr 1fr; }
  .av-included__list li:nth-child(2) { border-right: 0; }
  .av-included__list li:nth-child(-n+2) { border-bottom: 1px solid rgba(232, 243, 252, 0.12); }
}
@media (max-width: 560px) {
  .av-included__list { grid-template-columns: 1fr; }
  .av-included__list li { border-right: 0; border-bottom: 1px solid rgba(232, 243, 252, 0.12); padding: 16px 22px 20px; }
  .av-included__list li:last-child { border-bottom: 0; }
}
/* Stacked: the plan page's right-hand column, one item per row */
.av-included--stacked { margin-top: 0; }
.av-included--stacked .av-included__list { grid-template-columns: 1fr; }
.av-included--stacked .av-included__list li { border-right: 0; border-bottom: 1px solid rgba(232, 243, 252, 0.12); padding: 16px 26px 18px; }
.av-included--stacked .av-included__list li:last-child { border-bottom: 0; }
.av-included--stacked .av-included__list h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.av-included--stacked .av-included__list h3::before { margin: 0; width: 18px; flex: none; }
.av-size-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16px; padding: 18px 26px; border: 1px dashed rgba(140, 200, 243, 0.45); border-radius: 16px; background: rgba(140, 200, 243, 0.06); }
.av-size-help h2 { font-size: 20px; font-weight: 600; font-family: var(--av-display); }
.av-size-help p { margin-top: 4px; font-size: 15px; color: hsl(var(--color-muted)); max-width: 70ch; }

/* The plan page: a summary card beside the included panel -------------------- */
.av-plan-top { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .av-plan-top { grid-template-columns: 1fr; } }
.av-plan-summary { padding: 28px 28px 26px; border-radius: 16px; }
.av-plan-summary h2 { font-family: var(--av-display); }
.av-plan-summary .av-plan__tier--page { font-size: 14px; }
.av-plan-summary a button, .av-plan-summary a { align-self: flex-start; }
.av-plan-summary > a { margin-top: 6px; }

/* The plan-size helper in the shop's look (markup and behaviour untouched) ---- */
.dark .av-helper { margin-top: 3.5rem; }
.dark .av-h2 { font-family: var(--av-display); font-size: 1.75rem; font-weight: 600; }
.dark .av-muted { opacity: 1; color: hsl(var(--color-muted)); }
.dark .av-card, .dark .av-card--guide { background: linear-gradient(180deg, rgba(232, 243, 252, 0.09), rgba(12, 19, 64, 0.5)); border-color: rgba(232, 243, 252, 0.16); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(232, 243, 252, 0.14); }
.dark .av-h3 { font-family: var(--av-display); font-size: 1.15rem; font-weight: 600; }
.dark .av-label { color: hsl(var(--color-base)); }
.dark .av-ticks { color: hsl(var(--color-muted)); font-weight: 500; }
.dark .av-ticks span.av-on { color: #8cc8f3; font-weight: 700; }
.dark .av-note { opacity: 1; color: hsl(var(--color-muted)); }
.dark .av-range { accent-color: #8cc8f3; height: 1.4rem; }
.dark .av-advanced summary { color: #8cc8f3; }
.dark .av-choice { color: hsl(var(--color-base)); }
/* The verdict panel: dark and frosted, with the verdict colour as its accent */
.dark .av-fit { color: hsl(var(--color-base)); background: linear-gradient(180deg, rgba(232, 243, 252, 0.1), rgba(12, 19, 64, 0.55)); border-radius: 16px; border-width: 1px; box-shadow: inset 0 1px 0 rgba(232, 243, 252, 0.14); }
.dark .av-fit[data-fit="comfortable"] { background: linear-gradient(180deg, rgba(43, 196, 184, 0.2), rgba(12, 19, 64, 0.55)); border-color: rgba(43, 196, 184, 0.6); }
.dark .av-fit[data-fit="tight"] { background: linear-gradient(180deg, rgba(242, 178, 76, 0.2), rgba(12, 19, 64, 0.55)); border-color: rgba(242, 178, 76, 0.6); }
.dark .av-fit[data-fit="too_small"] { background: linear-gradient(180deg, rgba(255, 120, 120, 0.2), rgba(12, 19, 64, 0.55)); border-color: rgba(255, 120, 120, 0.6); }
.dark [data-fit="comfortable"] .av-verdict { color: #5fe0d4; } .dark [data-fit="tight"] .av-verdict { color: #f2b24c; } .dark [data-fit="too_small"] .av-verdict { color: #ff9a9a; }
.dark .av-meter { background: rgba(6, 10, 44, 0.6); border-color: rgba(232, 243, 252, 0.18); }
.dark [data-fit="comfortable"] .av-meter { color: #2bc4b8; } .dark [data-fit="tight"] .av-meter { color: #f2b24c; } .dark [data-fit="too_small"] .av-meter { color: #ff8a8a; }
.dark .av-mark { background: #e8f3fc; }
.dark .av-why { border-top-color: rgba(232, 243, 252, 0.16); }
.dark .av-hint { background: rgba(242, 178, 76, 0.14); color: #f6d8a0; border: 1px solid rgba(242, 178, 76, 0.3); }
.dark .av-fit p a { color: #8cc8f3; }
.dark .av-btn { background-image: linear-gradient(180deg, #f2f8fd 0%, #a9d0ef 100%); background-color: #a9d0ef; color: #06104a; border-radius: 999px; }
.dark .av-btn--ghost { background: transparent; color: #8cc8f3; border: 1.5px solid rgba(140, 200, 243, 0.7); }
.dark .av-bar { background: #0b1340; border-top-color: rgba(232, 243, 252, 0.18); }

#size-helper { scroll-margin-top: 90px; }
.av-size-help a { flex: none; }
.av-size-help button { width: auto; padding-inline: 22px; }

/* The Shop dropdown (shown only when there are two or more categories) ------ */
.dark nav .absolute.bg-background-secondary { background: #0b1340; border: 1px solid rgba(232, 243, 252, 0.2); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); padding: 6px; width: 15rem; }
.dark nav .absolute.bg-background-secondary a { border-radius: 10px; padding: 10px 12px; }
.dark nav .absolute.bg-background-secondary a:hover { background: rgba(232, 243, 252, 0.08); }


/* LIGHT MODE ------------------------------------------------------------------
 * The same shop by day: a pale sky instead of a night one, navy text, white frosted
 * cards, a solid horizon-blue button. Dark is the default; this is what a visitor
 * gets after switching the sun/moon toggle. Variables sit on :root (the stock
 * theme's own light values live there); the dark block above overrides them on
 * body.dark, so neither leaks into the other. */
:root {
  --color-primary: 207 74% 33%;          /* #166199-ish: links and buttons */
  --color-secondary: 175 72% 28%;        /* teal, darker for contrast on white */
  --color-neutral: 210 38% 84%;          /* borders */
  --color-base: 233 60% 14%;             /* text: deep navy */
  --color-muted: 222 22% 36%;
  --color-inverted: 222 18% 46%;
  --color-background: 210 70% 98%;
  --color-background-secondary: 0 0% 100%;
}
body:not(.dark) {
  background-color: #f3f9ff;
  background-image: radial-gradient(90% 420px at 50% -60px, rgba(75, 147, 209, 0.28), transparent 70%), linear-gradient(180deg, #f3f9ff 0%, #e3effa 55%, #d3e5f6 100%);
  background-repeat: no-repeat;
  color: #0c1340;
}
body:not(.dark) h1 { color: #0c1340; background: none; -webkit-text-fill-color: #0c1340; }
body:not(.dark) nav.fixed { background: rgba(255, 255, 255, 0.94); border-bottom-color: rgba(12, 19, 64, 0.1); }
body:not(.dark) footer { background: transparent; border-top: 1px solid rgba(12, 19, 64, 0.12); }
body:not(.dark) footer, body:not(.dark) footer * { border-color: rgba(12, 19, 64, 0.12); }
body:not(.dark) main .bg-background-secondary { background: rgba(255, 255, 255, 0.78); border-color: rgba(12, 19, 64, 0.1); border-radius: 16px; box-shadow: 0 1px 0 #fff inset, 0 10px 30px rgba(34, 80, 130, 0.08); }
body:not(.dark) nav .bg-background-secondary { background: #fff; }
body:not(.dark) input:not([type="checkbox"]):not([type="radio"]), body:not(.dark) select, body:not(.dark) textarea { background-color: #fff; border-color: rgba(12, 19, 64, 0.22); }
body:not(.dark) input:focus, body:not(.dark) select:focus, body:not(.dark) textarea:focus { outline: 2px solid #2e76ad; outline-offset: 2px; border-color: #2e76ad; }
body:not(.dark) input[type="checkbox"], body:not(.dark) input[type="radio"] { border: 1.5px solid rgba(12, 19, 64, 0.5); background-color: #fff; accent-color: #166199; }
/* Buttons: solid horizon blue pills with white text */
body:not(.dark) a.bg-primary, body:not(.dark) button.bg-primary, body:not(.dark) .bg-primary.cursor-pointer {
  background-image: linear-gradient(180deg, #2f7db8 0%, #1d5f94 100%); background-color: #1d5f94; color: #fff; border-radius: 999px; box-shadow: 0 6px 18px rgba(34, 106, 163, 0.28);
}
body:not(.dark) a.bg-primary:hover, body:not(.dark) button.bg-primary:hover { filter: brightness(1.08); }
body:not(.dark) .bg-primary.bg-red-700 { background-image: none; background-color: #b91c1c; box-shadow: none; }
body:not(.dark) button.bg-secondary, body:not(.dark) a.bg-secondary { border-radius: 999px; }
/* Stock status pills */
body:not(.dark) .bg-green-900 { background: #e3f5f3; color: #14665f; }
body:not(.dark) .text-green-300 { color: #14665f; }
body:not(.dark) .bg-red-900 { background: #fff4e0; color: #8a5200; border: 1px solid #f0cf94; }
body:not(.dark) .text-red-300 { color: #8a5200; }
/* Plan cards */
body:not(.dark) .av-plan--pick { border-color: rgba(23, 140, 130, 0.7) !important; box-shadow: 0 16px 40px rgba(34, 80, 130, 0.16), 0 1px 0 #fff inset; }
body:not(.dark) .av-plan__flag, body:not(.dark) .av-badge { background: #1aa79b; color: #fff; }
body:not(.dark) .av-plan__desc li::before { border-color: #14887e; }
/* Included panel and size note */
body:not(.dark) .av-included { background: rgba(255, 255, 255, 0.78); border-color: rgba(12, 19, 64, 0.1); box-shadow: 0 1px 0 #fff inset, 0 10px 30px rgba(34, 80, 130, 0.08); }
body:not(.dark) .av-included__title { color: #166199; }
body:not(.dark) .av-included__list li, body:not(.dark) .av-included--stacked .av-included__list li { border-color: rgba(12, 19, 64, 0.1); }
body:not(.dark) .av-included__list h3::before { background: linear-gradient(90deg, #1aa79b, #4b93d1); }
body:not(.dark) .av-size-help { border-color: rgba(22, 97, 153, 0.45); background: rgba(75, 147, 209, 0.08); }
/* Home hero */
body:not(.dark) .av-hero { background: none; border: 0; box-shadow: none; border-radius: 0; padding-top: 56px; padding-bottom: 24px; }
body:not(.dark) .av-hero .prose a { color: #166199; }
body:not(.dark) .av-hero .prose, body:not(.dark) .av-hero .prose * { color: #0c1340; }
/* Plan-size helper by day: keep its own light panels, give the cards our look */
body:not(.dark) .av-card, body:not(.dark) .av-card--guide { background: rgba(255, 255, 255, 0.78); border-color: rgba(12, 19, 64, 0.1); border-radius: 16px; box-shadow: 0 1px 0 #fff inset, 0 10px 30px rgba(34, 80, 130, 0.08); }
body:not(.dark) .av-fit { border-radius: 16px; }
body:not(.dark) .av-btn { background-image: linear-gradient(180deg, #2f7db8, #1d5f94); border-radius: 999px; color: #fff; }
body:not(.dark) .av-h2 { font-family: var(--av-display); font-size: 1.75rem; font-weight: 600; }
body:not(.dark) .av-h3 { font-family: var(--av-display); }
body:not(.dark) .av-range { accent-color: #166199; }
/* The Shop dropdown */
body:not(.dark) nav .absolute.bg-background-secondary { background: #fff; border: 1px solid rgba(12, 19, 64, 0.12); border-radius: 14px; box-shadow: 0 18px 40px rgba(34, 80, 130, 0.18); padding: 6px; width: 15rem; }
body:not(.dark) nav .absolute.bg-background-secondary a { border-radius: 10px; padding: 10px 12px; }
body:not(.dark) nav .absolute.bg-background-secondary a:hover { background: rgba(75, 147, 209, 0.12); }
