/* Circuit website styling for the whole app (24 Nov 2026).
   Loaded last on every page. Colours were moved onto the homepage palette in each stylesheet;
   this file gives the shared pieces the homepage's shapes: pill buttons, rounded cards and inputs,
   a warm paper page and an ink side menu. */
:root{--ink:#141416;--navy:#101113;--blue:#0357ee;--blue-hover:#0249d0;--muted:#666872;--line:#e4e2dc;--hair:#e4e2dc;--rule:#d9d6ce;--paper:#fafaf8;--paper-2:#f1f0ec;--deep:#07152b;--info-bg:#e9effd;--good:#237451;--good-bg:#eaf5ee;--warn:#85621b;--warn-bg:#fff5e2}
body{background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* Buttons: pills. The main action is Circuit blue; the others are outlined in ink. */
.button{border-radius:999px;background:var(--blue);border-color:transparent;color:#fff;padding-inline:20px;font-weight:500;transition:background-color .2s,color .2s,box-shadow .2s}
.button:hover{background:var(--blue-hover)}
.button.secondary,.button.light{background:transparent;color:var(--ink);border-color:transparent;box-shadow:inset 0 0 0 1.5px var(--ink)}
.button.secondary:hover,.button.light:hover{background:var(--ink);color:#fff}
.button.small{padding-inline:14px}
:is(.money-hero,.daily-hero,.metric.primary) .button.light{background:#fff;color:var(--ink);box-shadow:none}
:is(.money-hero,.daily-hero,.metric.primary) .button.light:hover{background:var(--paper-2);color:var(--ink)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-color:var(--blue)}

/* Inputs: softly rounded, warm borders. */
select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),textarea{border-color:var(--rule);border-radius:12px}
input[type=checkbox],input[type=radio]{accent-color:var(--blue)}

/* Side menu and top bar: paper, with the current page as an ink pill. */
.sidebar{background:var(--paper);border-right-color:var(--hair)}
nav a{border-radius:999px;color:var(--muted)}
nav a:hover{background:var(--paper-2);color:var(--ink)}
nav a.active,nav a[aria-current="page"]{background:var(--ink);color:#fff}
nav a.active *,nav a[aria-current="page"] *{color:inherit}
.workspace,.sidebar-bottom{border-color:var(--hair)}
.topbar{background:#fafaf8e6;border-bottom-color:var(--hair);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px)}
.eyebrow,.nav-label{color:var(--muted)}

/* Cards: white on paper, rounded like the homepage's cards, without hard borders. */
main{background:var(--paper)}
.panel,.metric{border-color:transparent;box-shadow:0 1px 0 #1414160a,0 0 0 1px #14141408;border-radius:24px}
.metric.primary{background:var(--deep);border-color:transparent}
.pill{border-radius:999px;padding-inline:10px;background:var(--paper-2);color:var(--ink)}
.pill.amber,.pill.review{background:var(--warn-bg);color:var(--warn)}
h1{letter-spacing:-.03em}
th{color:var(--muted)}
th,td{border-color:var(--hair)}
a{text-underline-offset:3px}

/* On phones Refresh is a text link, not a button. */
@media(max-width:900px){.heading-actions #refresh{box-shadow:none;background:none;padding-inline:0;color:var(--blue)}.heading-actions #refresh:hover{background:none;color:var(--blue-hover)}}

/* Billing and setup headers: light, like the homepage header, with the logo in its own dark ink. */
.billing-header,body>header{background:#fafaf8f2;color:var(--ink);border-bottom:1px solid var(--hair)}
.billing-header .circuit-logo image,body>header .circuit-logo image{filter:none}
.billing-header a{color:var(--ink)}
.billing-header button{color:var(--ink);border-color:transparent;box-shadow:inset 0 0 0 1.5px var(--ink);border-radius:999px;background:transparent}
.billing-header button:hover{background:var(--ink);color:#fff}
.billing-header .language-control,.billing-header .language-control label{color:var(--ink)}

/* Billing and setup buttons follow the same rule: Circuit blue for the main action, ink outline otherwise. */
.billing-status~section button:not(.pay-button),#refresh-bills,.card-actions button:not(.pay-button),.manual-payment button:not(.pay-button){border-radius:999px;border-color:transparent;background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.billing-status~section button:not(.pay-button):hover,#refresh-bills:hover,.card-actions button:not(.pay-button):hover{background:var(--ink);color:#fff}
.pay-button{border-radius:999px;background:var(--blue);border-color:var(--blue);color:#fff}
.pay-button:hover{background:var(--blue-hover);border-color:var(--blue-hover)}
.setup-page button,body>main button{border-radius:999px}
.controls button{background:var(--paper-2);color:var(--ink)}
.controls button:hover{background:var(--hair)}

/* Log in, sign up and password pages (25 Nov 2026): the homepage's look. Warm paper, a rounded photo
   panel with a navy fade and floating white cards like the homepage hero, and the form in a white card. */
.auth-page{background:var(--paper-2)}
.auth-page .auth-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:16px;padding:16px;min-height:100vh;background:var(--paper-2)}
.auth-story{position:sticky;top:16px;height:calc(100vh - 32px);min-height:620px;padding:40px 48px;border-radius:28px;color:#fff;
 background:linear-gradient(180deg,#07152b59 0%,#07152b0d 30%,#07152b26 55%,#07152bf2 100%),url(/assets/auth-shopkeeper.jpg) center 30%/cover no-repeat,var(--deep)}
.auth-story-copy{margin:auto 0 0;padding:0}
.auth-story-copy .eyebrow{color:#ffffffb3;font-size:13px;letter-spacing:.05em}
.auth-story-copy h1{margin:16px 0 16px;color:#fff;font-size:clamp(40px,4.4vw,68px);line-height:1.02;letter-spacing:-.035em}
.auth-story-copy>p{max-width:460px;color:#ffffffd9;font-size:17px;line-height:1.55}
.auth-cards{position:absolute;top:118px;right:40px;display:grid;justify-items:end;gap:14px}
.auth-fc{display:flex;align-items:center;gap:16px;padding:14px 18px;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 18px 40px -18px #07152b80}
.auth-fc-sale strong{display:block;font-weight:500;font-size:16px;line-height:21px}
.auth-fc-sale span{display:block;color:#3c3f47;font-size:13.5px;line-height:18px}
.auth-fc-sale em{padding:4px 10px;border-radius:999px;background:var(--good-bg);color:var(--good);font-style:normal;font-size:13px;font-weight:500}
.auth-fc-chat{max-width:300px;align-items:flex-end}
.auth-fc-chat p{font-size:14px;line-height:19px}
.auth-fc-avatar{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--blue);color:#fff;font:400 22px/1 var(--serif)}
.auth-story-foot{margin-top:28px;color:#ffffffa6;font-size:12.5px;letter-spacing:0}
.auth-entry{padding:24px 6%;background:transparent}
.auth-card{max-width:460px;padding:40px;border-radius:24px;background:#fff;box-shadow:0 1px 0 #1414160a,0 24px 48px -32px #14141633}
.auth-card>.eyebrow{color:var(--muted);font-size:12.5px;letter-spacing:.05em}
.auth-card h2{margin:14px 0 12px;color:var(--ink);font-size:40px;line-height:1.08;letter-spacing:-.03em}
.auth-intro{color:var(--muted);line-height:1.6}
.auth-card form{margin-top:28px;gap:10px}
.auth-card label{color:var(--ink);font-size:13.5px;font-weight:500}
.auth-card input{min-height:52px;border:1px solid var(--rule);border-radius:12px;background:#fff}
.auth-card input:focus,.onboarding-card select:focus{outline:3px solid #0357ee33;outline-offset:0;border-color:var(--blue)}
.auth-card .button{min-height:52px;justify-content:center;margin-top:10px;font-size:16px}
.auth-card .button:disabled{opacity:.45}
.password-field button{color:var(--muted)}
.forgot-link,.auth-switch a,.auth-back,.auth-foot a,.email-confirmation a,.auth-text-button{color:var(--ink)}
.auth-switch{color:var(--muted)}
.auth-status{color:var(--good)}
.auth-status.error{color:#a53736}
.auth-pricing{color:var(--muted)}
.auth-pricing span:first-child{color:var(--ink)}
.email-confirmation{background:var(--info-bg);border-color:#d3defb}
.auth-foot{color:var(--muted)}
@media(max-width:1180px){.auth-cards{top:104px;right:28px}.auth-fc-chat{display:none}}
@media(max-width:900px){
 .auth-page .auth-layout{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}
 .auth-story{position:relative;top:0;height:auto;min-height:260px;padding:22px 22px 24px;border-radius:24px;background-position:center 22%}
 .auth-story-copy{margin-top:auto;padding-top:96px}
 .auth-story-copy h1{font-size:34px;line-height:1.05;margin:10px 0 0}
 .auth-story-copy .eyebrow{font-size:11.5px}
 .auth-cards{top:22px;right:22px}
 .auth-fc{padding:8px 12px;gap:10px;border-radius:12px}
 .auth-fc-sale strong{font-size:13.5px;line-height:17px}.auth-fc-sale span{font-size:12px;line-height:15px}.auth-fc-sale em{font-size:11.5px;padding:3px 8px}
 .auth-entry{padding:8px 0 16px}
 .auth-card{max-width:none;padding:28px 20px}
 .auth-card h2{font-size:32px}
}
@media(max-width:420px){.auth-cards{display:none}.auth-story{min-height:220px}.auth-story-copy{padding-top:64px}}
