/* ==========================================================================
   Global Prime Taxation — modern layer
   Loaded after site.css on the public site (Site.Master). Brings the public
   pages in line with the client portal: rounded corners, soft shadows,
   a frosted-glass header, pill buttons and gentle motion.
   Remove the <link> to modern.css in Site.Master to return to the previous look.
   ========================================================================== */

:root {
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 71, .05), 0 2px 6px -2px rgba(14, 42, 71, .08);
  --shadow-md: 0 10px 30px -14px rgba(14, 42, 71, .28);
  --shadow-lg: 0 30px 70px -30px rgba(14, 42, 71, .45);
  --sky: #4F8FE0;
  --glow: linear-gradient(90deg, var(--red) 0%, #E8795F 30%, var(--sky) 70%, var(--navy) 100%);
  --header-h: 72px;
}

/* ---------- Buttons: pills with a soft lift ---------- */
.btn { border-radius: 999px; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, #D2492F 0%, var(--red) 55%, #B3361F 100%);
  box-shadow: 0 8px 20px -10px rgba(198, 63, 42, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: linear-gradient(135deg, #C3432B 0%, var(--red-dark) 100%); box-shadow: 0 12px 26px -10px rgba(198, 63, 42, .8); }
.btn-cta svg { transition: transform .2s; }
.btn-cta:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar { background: var(--navy-deep); }
.topbar .container { align-items: center; padding-block: 7px; }
.announce { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); font-weight: 500; }
.topbar a.announce { color: var(--on-navy); font-weight: 500; }
.topbar a.announce:hover { text-decoration: none; color: var(--white); }
.announce-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--white);
  padding: 3px 9px; border-radius: 999px; background: var(--glow); background-size: 200% 100%;
  animation: gpt-shimmer 6s linear infinite;
}
.announce svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.announce:hover svg { transform: translateX(3px); }

.site-header {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(14, 42, 71, .08);
}
/* Thin animated brand gradient along the bottom edge */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--glow); background-size: 200% 100%; opacity: .55;
  animation: gpt-shimmer 8s linear infinite;
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -22px rgba(14, 42, 71, .55); background: rgba(255, 255, 255, .88); }
.site-header .bar { transition: min-height .25s; }
.site-header.is-scrolled .bar { min-height: 62px; }

.brand img { transition: width .25s; }
.site-header.is-scrolled .brand img { width: 96px; }

/* Navigation: pills inside a soft track */
.main-nav > ul {
  gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(234, 240, 247, .7); border: 1px solid rgba(14, 42, 71, .06);
}
.main-nav .nav-link {
  height: 38px; padding-inline: 15px; border-radius: 999px;
  font-weight: 500; font-size: 14.5px; color: var(--ink);
  box-shadow: none; transition: background-color .2s, color .2s, box-shadow .2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link[aria-expanded="true"] { color: var(--navy); background: var(--white); box-shadow: var(--shadow-sm); }
.main-nav .nav-link.is-current,
.main-nav .nav-link[aria-current="page"] { color: var(--white); background: var(--navy); box-shadow: 0 6px 14px -8px rgba(14, 42, 71, .8); }
.main-nav .caret { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; font-size: 0; }

.header-actions { gap: 8px; }
.btn-login { background: transparent; color: var(--navy); font-weight: 600; padding-inline: 14px; }
.btn-login:hover { background: var(--soft); }
.btn-login svg { width: 17px; height: 17px; }

/* Mega menu: a floating panel */
.mega {
  left: 50%; right: auto; width: min(1140px, calc(100% - 32px)); top: calc(100% + 10px);
  transform: translate(-50%, -8px);
  border: 1px solid rgba(14, 42, 71, .08); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}
.mega.is-open { transform: translate(-50%, 0); }
.mega .container { max-width: none; }
.mega ul a { padding: 8px 12px; margin-inline: -12px; border-radius: 10px; transition: background-color .15s, color .15s; }
.mega ul a:hover { background: var(--ground); color: var(--red); }
.mega .feature { border-radius: 16px; background: linear-gradient(160deg, var(--soft), #F4F7FB); }

.menu-toggle { border-radius: 12px; }

@media (max-width: 1080px) {
  .mega { display: none; }   /* phones and tablets use the drawer menu */
  .header-actions .btn-login { display: none; }
  .drawer { background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}
@media (max-width: 720px) {
  .announce-text { display: none; }
  .announce::after { content: "Track your return live"; }
}
@media (max-width: 560px) {
  .topbar .contact a:not(:first-child) { display: none; }
  .header-actions .btn-cta svg { display: none; }
}

/* ==========================================================================
   Hero: photo with floating app cards
   ========================================================================== */
.hero::after {
  /* soft light behind the photo */
  content: ""; position: absolute; z-index: -1; right: 8%; top: 18%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 143, 224, .28), rgba(79, 143, 224, 0) 65%);
  filter: blur(10px);
}
.hero-media .photo { border-radius: var(--radius-xl); border-color: rgba(255, 255, 255, .18); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.credential { border-radius: 16px; }

.float-card {
  position: absolute; z-index: 2; background: rgba(255, 255, 255, .94); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
  animation: gpt-float 6s ease-in-out infinite;
}
.float-track { right: -28px; top: 28px; width: 270px; padding: 16px 18px; display: grid; gap: 12px; }
.float-track header { display: flex; justify-content: space-between; align-items: center; }
.float-track header b { font-size: 14px; }
.float-track header span { font-size: 11.5px; font-weight: 700; color: #146C3F; background: #E3F4EA; padding: 3px 8px; border-radius: 999px; }
.float-track ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.float-track li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.float-track li i {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700;
  background: var(--soft); color: var(--muted);
}
.float-track li.done i { background: var(--navy); color: #fff; }
.float-track li.done { color: var(--ink); }
.float-track li.now i { background: var(--red); color: #fff; box-shadow: 0 0 0 4px rgba(198, 63, 42, .18); }
.float-track li.now { color: var(--ink); font-weight: 600; }
.float-track .bar { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.float-track .bar span { display: block; height: 100%; width: 62%; border-radius: inherit; background: var(--glow); background-size: 200% 100%; animation: gpt-shimmer 5s linear infinite; }
.float-sign { right: -30px; bottom: 150px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; animation-delay: -3s; }
.float-sign i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #E3F4EA; color: #146C3F; font-style: normal; font-weight: 700; }
.float-sign b { display: block; font-size: 13.5px; }
.float-sign span { font-size: 12px; color: var(--muted); }

@media (max-width: 1200px) { .float-track { right: -10px; } .float-sign { right: -10px; } }
@media (max-width: 960px) {
  .float-track { right: 12px; top: 12px; width: 240px; }
  .float-sign { right: 12px; bottom: 110px; }
}
@media (max-width: 520px) { .float-sign { display: none; } .float-track { width: 220px; } }

/* ==========================================================================
   Cards and surfaces: rounded, with soft shadows
   ========================================================================== */
.audience, .cols-2 .box, .side-card, .office, .form-card, .pay-option, .pay-method {
  border-radius: var(--radius-lg); border-color: rgba(14, 42, 71, .09); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.audience:hover, .office:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.side-card.dark { border-radius: var(--radius-lg); }
.pay-option { padding: 32px; }

/* Services grid: separate cards instead of a ruled table */
.svc-grid { gap: 18px; border: 0; }
.svc-card { border: 1px solid rgba(14, 42, 71, .09); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-card .code, .member .creds span { border-radius: 999px; }

/* Values: separate cards */
.values { gap: 18px; border: 0; }
.values > * { background: var(--white); border: 1px solid rgba(14, 42, 71, .09) !important; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

.member img, .member .photo { border-radius: var(--radius-lg); }
.article { border-top: 0; padding: 22px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid rgba(14, 42, 71, .09); box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.article:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article::before { content: ""; display: block; height: 4px; width: 44px; border-radius: 999px; background: var(--glow); margin-bottom: 4px; }

.proof .stat b { background: linear-gradient(120deg, var(--navy), #2E5E96); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logos img { transition: opacity .25s, filter .25s, transform .25s; }
.logos img:hover { transform: translateY(-2px); }

/* Process steps: numbered glass chips */
.step::before { border-radius: 50%; }

/* Quote + app sections */
.quote-controls button, .quote-controls .btn { border-radius: 999px; }
.app .phone, .app img { border-radius: var(--radius-lg); }

/* CTA band: rounded panel with a soft glow */
.cta .container { position: relative; }

/* Forms */
.field input, .field select, .field textarea, .phone-row select { border-radius: 10px; }
.alert { border-radius: 12px; border-left-width: 4px; }
.sso-btn { border-radius: 12px; }
.sso-hint, .bot-notice { border-radius: 10px; }

/* Inner page hero: faint grid texture for a technical feel */
.page-hero::after, .hero .grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero .grid { position: relative; }
.hero .grid::before { left: -20vw; right: -20vw; }

/* In-page section menu on service pages (built by site.js) */
.section-nav {
  position: sticky; top: calc(var(--header-h) + 12px); z-index: 5;
  display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; margin-bottom: 8px;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(14, 42, 71, .08); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.section-nav a { font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 7px 14px; border-radius: 999px; transition: background-color .2s, color .2s; }
.section-nav a:hover { color: var(--navy); background: var(--ground); }
.section-nav a.is-active { color: var(--white); background: var(--navy); }
@media (max-width: 960px) {
  .section-nav { border-radius: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .section-nav::-webkit-scrollbar { display: none; }
  .section-nav a { white-space: nowrap; }
}

/* ==========================================================================
   Motion: content eases in as it scrolls into view (site.js adds .reveal)
   ========================================================================== */
.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }

@keyframes gpt-shimmer { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes gpt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; transform: none; }
  .float-card, .announce-pill, .site-header::after, .float-track .bar span { animation: none; }
}

/* Sign-in page: the tracker preview sits in the panel (not floating over a photo) */
.float-card.auth-preview { position: relative; right: auto; top: auto; width: min(340px, 100%); animation-duration: 7s; }
.auth .panel { gap: 24px; }
.auth .panel::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: 10%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 143, 224, .22), rgba(79, 143, 224, 0) 65%);
}
.auth .body .form-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 960px) { .float-card.auth-preview { display: none; } }

/* Section menu links are navigation, not article links */
.prose .section-nav a { text-decoration: none; }
/* Form chips in the service page hero */
.page-hero .forms span { border-radius: 999px; background: rgba(255, 255, 255, .06); }

/* The tracker preview inside the sign-in panel must not inherit the panel's tick list */
.auth .panel .float-track ol li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 0; color: var(--muted); font-size: 13px; }
.auth .panel .float-track ol li::before { content: none; display: none; }
.auth .panel .float-track ol li.done, .auth .panel .float-track ol li.now { color: var(--ink); }

/* Phones: arrow after the short announcement text */
@media (max-width: 720px) {
  .announce::after { order: 2; }
  .announce svg { order: 3; }
}

/* ==========================================================================
   Sign-in and registration
   ========================================================================== */
.form-card > p.auth-sub { font-size: 14.5px; margin-top: -14px; }

/* Mobile number: country code and number in one field */
.phone-combo {
  display: flex; align-items: stretch; width: 100%; min-height: 44px;
  background: var(--white); border: 1px solid #C9D3DF; border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.phone-combo:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14, 42, 71, .12); }
.field .phone-combo select {
  flex: none; width: auto; min-width: 0; border: 0; border-right: 1px solid #E3E8EF; border-radius: 10px 0 0 10px; box-shadow: none;
  background: #F6F8FB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355647A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  -webkit-appearance: none; appearance: none; padding: 0 32px 0 14px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer;
}
.field .phone-combo select:focus { outline: none; box-shadow: none; background-color: #EEF2F7; }
.field .phone-combo input {
  flex: 1; min-width: 0; border: 0; border-radius: 0 10px 10px 0; box-shadow: none; background: transparent;
  padding: 0 14px; font-size: 16px; letter-spacing: .02em;
}
.field .phone-combo input:focus { outline: none; box-shadow: none; border: 0; }
.field.has-error .phone-combo { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .14); }
.field.has-error .phone-combo input, .field.has-error .phone-combo select { border-color: transparent; box-shadow: none; }
.field.has-error .phone-combo select { border-right-color: #F3D2CE; }
