/*
Savitur Circle - public front-end styles.

Owned by the plugin (not a theme page.css), but deliberately reuses
the theme's own design tokens (--primary, --accent, --text, etc. from
assets/css/common.css) and shared classes (.container, .btn-rose,
.eyebrow, .section-divider) rather than redefining them, so the
Circle pages stay visually on-brand with the rest of the site.
*/

/* ===== Landing hero (page-savitur-circle.php) ===== */

.circle-hero{
    padding:55px 0 0;
}

.circle-hero-inner{
    display:grid;
    grid-template-columns:.85fr 1.15fr;
    gap:40px;
    align-items:start;
}

.circle-hero-lede{
    color:var(--text-light);
    font-size:var(--fs-body);
    max-width:420px;
}

/* Icon-over-label row, divided by thin vertical rules - mirrors the
   Daily Edit hero's quick-highlights treatment (assets/css/daily-
   edit.css .edit-hero-highlights) for a consistent site-wide pattern. */
.circle-hero-points{
    list-style:none;
    margin:26px 0 0;
    padding:0;
    display:flex;
}

.circle-hero-points li{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:0 16px;
    font-size:12.5px;
    line-height:1.4;
    color:var(--text-light);
    border-left:1px solid var(--border);
}

.circle-hero-points li:first-child{
    padding-left:0;
    border-left:none;
}

.circle-hero-points img{
    width:26px;
    height:26px;
}

.circle-hero-tagline{
    margin-top:26px;
    font-family:"Caveat", cursive;
    font-size:26px;
    line-height:1.3;
    color:var(--rose-deep);
}

.circle-hero-image{
    position:relative;
    border-radius:8px;
    overflow:hidden;
}

.circle-hero-image img{
    width:100%;
    height:560px;
    object-fit:cover;
    object-position:top center;
    display:block;
}

/* Top-right vertical caption, overlaid straight on the photo - a
   light text-shadow keeps it legible without needing a darkening
   scrim over the image itself. */
.circle-hero-image-caption{
    position:absolute;
    top:34px;
    right:34px;
    z-index:2;
    list-style:none;
    margin:0;
    padding:0;
    text-align:right;
}

.circle-hero-image-caption li{
    font-family:var(--font-heading);
    font-size:19px;
    color:var(--white);
    text-shadow:0 1px 6px rgba(0,0,0,.35);
}

.circle-hero-image-caption li.is-strong{
    margin-top:6px;
    padding-top:8px;
    font-weight:600;
    border-top:1px solid rgba(255,255,255,.6);
}

/* Bottom-right circular badge - same overlay-on-photo component the
   Daily Edit hero card uses (.edit-hero-card-pieces), rose-toned here
   instead of dark. */
.circle-hero-image-badge{
    position:absolute;
    right:28px;
    /* Clears the join card's overlap zone (margin-top:-70px, see
       .circle-join-card) rather than sitting right at the image's
       bottom edge where the card would cut across it. */
    bottom:120px;
    z-index:2;
    width:150px;
    height:150px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.7);
    background:rgba(180,114,112,.9);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:var(--white);
    font-size:12.5px;
    line-height:1.6;
}

.circle-hero-image-badge .is-strong{
    font-weight:700;
}

.circle-join-card{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:1fr 1.3fr;
    align-items:center;
    gap:32px;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:8px;
    box-shadow:0 18px 40px rgba(60,40,30,.12);
    padding:32px 36px;
    max-width:960px;
    margin:-70px auto 0;
}

.circle-join-card-text h2{
    margin-bottom:4px;
}

.circle-join-card-text p{
    color:var(--text-light);
}

.circle-join-fields{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:start;
    gap:12px 16px;
}

.circle-join-fields .circle-field{
    grid-column:1;
}

.circle-join-fields .btn-rose{
    grid-column:2;
    grid-row:1;
    align-self:end;
    white-space:nowrap;
}

.circle-join-fields .circle-terms-row{
    grid-column:1 / -1;
}

.circle-field{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.circle-field-label{
    font-size:var(--fs-dense);
    font-weight:500;
    color:var(--text);
}

.circle-field input[type="text"],
.circle-field input[type="tel"],
.circle-field select{
    padding:11px 14px;
    border:1px solid var(--border);
    border-radius:5px;
    font-family:var(--font-body);
    font-size:var(--fs-body);
    background:var(--white);
}

.circle-field-static-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:11px 14px;
    border:1px solid var(--border);
    border-radius:5px;
    background:var(--border-tint);
}

.circle-edit-mobile{
    background:none;
    border:none;
    color:var(--primary);
    font-weight:600;
    cursor:pointer;
}

.circle-terms-row{
    display:flex;
    align-items:flex-start;
    gap:8px;
    font-size:var(--fs-dense);
    color:var(--text-light);
}

.circle-terms-row a{
    color:var(--primary);
}

.circle-field-error{
    color:#b32d2e;
    font-size:var(--fs-dense);
    margin-top:12px;
}

/* ===== Why You'll Love It ===== */

.circle-why-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:var(--gap-grid);
    margin-top:32px;
    text-align:center;
}

.circle-why-item img{
    width:var(--icon-md);
    height:var(--icon-md);
    margin:0 auto 12px;
}

.circle-why-item h3{
    font-size:20px;
    margin-bottom:6px;
}

.circle-why-item p{
    color:var(--text-light);
    font-size:var(--fs-dense);
}

/* ===== Landing testimonial ===== */

.circle-testimonial{
    margin-top:60px;
    padding:56px 0;
    background:var(--rose-tint);
}

.circle-testimonial-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

.circle-testimonial blockquote{
    margin:0;
    max-width:620px;
}

.circle-testimonial p{
    font-family:var(--font-heading);
    font-style:italic;
    font-size:22px;
    line-height:1.5;
    color:var(--text);
}

.circle-testimonial cite{
    display:block;
    margin-top:14px;
    font-style:normal;
    font-size:var(--fs-dense);
    color:var(--text-light);
}

.circle-testimonial-mark{
    flex-shrink:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    text-align:center;
}

.circle-testimonial-mark img{
    width:40px;
    height:40px;
    opacity:.55;
}

.circle-testimonial-mark span{
    font-size:11px;
    font-weight:700;
    letter-spacing:1.4px;
    text-transform:uppercase;
    color:var(--rose-deep);
}

/* ===== Join details (step 2) ===== */

.circle-join-state{
    padding:60px 0;
    background:var(--rose-tint);
}

.circle-join-layout{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:48px;
    align-items:stretch;
}

/* Photo side - a single tall portrait (circle-register.png, its
   subject framed to the right) with the heading/points/tagline laid
   directly over its light left half. Stretches to match whatever
   height the form card on the right ends up needing. */
.circle-join-side{
    position:relative;
    overflow:hidden;
    border-radius:8px;
    min-height:640px;
}

.circle-join-side-photo{
    position:absolute;
    inset:0;
    z-index:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:right center;
}

/* At this column's proportions the photo's width always shows in
   full (nothing to crop side-to-side), so the "plain background on
   the left" the source photo has near the top thins out lower down
   as the saree pattern fills the frame. This scrim - fading from the
   section's own rose-tint into the photo - keeps the overlaid text
   readable at every line regardless of what's behind it. */
.circle-join-side::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background:linear-gradient(to right, var(--rose-tint) 0%, rgba(247,239,233,.94) 38%, rgba(247,239,233,.55) 58%, transparent 78%);
}

.circle-join-side-content{
    position:relative;
    z-index:2;
    max-width:380px;
    padding:36px 32px;
}

.circle-back-link{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-bottom:22px;
    padding:0;
    border:none;
    background:none;
    color:var(--text);
    font-size:var(--fs-dense);
    font-weight:600;
    cursor:pointer;
}

.circle-back-link:hover{
    color:var(--primary);
}

.circle-join-points{
    list-style:none;
    margin:26px 0 0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.circle-join-points li{
    display:flex;
    align-items:flex-start;
    gap:14px;
    font-size:var(--fs-dense);
    color:var(--text-light);
}

.circle-join-points li strong{
    display:block;
    color:var(--text);
    font-size:15px;
    margin-bottom:2px;
}

.circle-join-point-icon{
    flex:none;
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border-radius:50%;
    background:var(--rose-tint);
}

.circle-join-point-icon img{
    width:20px;
    height:20px;
}

.circle-join-tagline{
    margin-top:30px;
    font-family:"Caveat", cursive;
    font-size:24px;
    line-height:1.3;
    color:var(--rose-deep);
}

.circle-join-roots{
    margin-top:30px;
    display:flex;
    flex-direction:column;
    gap:3px;
    font-size:11px;
    font-weight:700;
    letter-spacing:1.4px;
    text-transform:uppercase;
    color:var(--rose-deep);
}

.circle-join-roots::after{
    content:"";
    display:block;
    width:36px;
    height:1px;
    margin-top:10px;
    background:var(--border);
}

.circle-join-form-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:8px;
    padding:32px;
}

.circle-step-label{
    font-size:var(--fs-eyebrow);
    color:var(--text-light);
    margin-bottom:6px;
}

.circle-progress{
    height:4px;
    background:var(--border);
    border-radius:2px;
    margin-bottom:20px;
    overflow:hidden;
}

.circle-progress span{
    display:block;
    height:100%;
    background:var(--primary);
}

.circle-join-form-card .circle-field{
    margin-top:16px;
}

.circle-join-form-card .circle-terms-row{
    margin-top:16px;
}

.circle-join-submit{
    margin-top:20px;
    width:100%;
}

/* Reuses .circle-testimonial (see the landing page's own copy of this
   band) inside the already rose-tinted .circle-join-state, so its own
   margin-top is trimmed and a divider stands in for a background
   change to mark it as its own closing band. No avatar photos here -
   just the caption text in place of the mockup's 3 member photos.
   Padding is also trimmed from the base 56px top/bottom - this band's
   content is shorter than the landing page's, so the same padding
   read as too much empty space around it. */
.circle-join-testimonial{
    margin-top:36px;
    padding:28px 0;
    border-top:1px solid var(--border);
}

/* ===== Welcome / PIN reveal ===== */

.circle-welcome-state{
    padding:60px 0;
}

.circle-welcome-card{
    max-width:560px;
    text-align:center;
    background:var(--surface-tint);
    border:1px solid var(--border);
    border-radius:8px;
    padding:40px;
}

.circle-welcome-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin:28px 0;
}

.circle-welcome-item{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:6px;
    padding:20px;
}

.circle-welcome-label{
    display:block;
    font-size:var(--fs-eyebrow);
    color:var(--text-light);
    margin-bottom:6px;
}

.circle-welcome-value{
    display:block;
    font-family:var(--font-heading);
    font-size:28px;
    color:var(--primary);
    letter-spacing:1px;
    margin-bottom:10px;
}

.circle-copy-btn{
    padding:7px 14px;
    border:1px solid var(--primary);
    background:none;
    color:var(--primary);
    border-radius:4px;
    font-size:var(--fs-eyebrow);
    cursor:pointer;
}

.circle-welcome-notice{
    color:var(--text-light);
    font-size:var(--fs-dense);
}

.circle-share-whatsapp{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 24px;
    background:#25d366;
    color:var(--white);
    border-radius:5px;
    font-weight:600;
    text-decoration:none;
}

/* Two distinct actions on the Welcome screen - "Save to WhatsApp"
   (Code + PIN, sent to yourself) styled as a secondary/outline
   action so it never reads as the same thing as the solid-green
   "Share with Friends" button right below it. */
.circle-welcome-actions{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
    margin:28px 0 18px;
}

.circle-welcome-action-hint{
    margin-top:8px;
    font-size:var(--fs-eyebrow);
    color:var(--text-light);
}

.circle-share-whatsapp--self{
    background:none;
    border:1px solid var(--primary);
    color:var(--primary);
}

.circle-welcome-login-hint{
    margin-top:20px;
    font-size:var(--fs-dense);
    color:var(--text-light);
}

.circle-welcome-login-hint a{
    color:var(--primary);
}

/* ===== Track Order: Circle panel + share banner ===== */

/* display:grid/flex below would otherwise override the hidden attribute */
.circle-panel[hidden],
.circle-panel [hidden],
.circle-share-banner[hidden]{
    display:none !important;
}

.circle-panel{
    display:grid;
    grid-template-columns:1.5fr 1fr;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    overflow:hidden;
}

.circle-panel-main{
    padding:24px 26px;
}

.circle-panel-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.circle-panel-head h2{
    margin:4px 0 4px;
    font-size:28px;
    color:var(--rose-deep);
}

.circle-panel-head p{
    margin:0;
    color:var(--text-light);
    font-size:var(--fs-dense);
}

.circle-panel-cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-top:22px;
}

.circle-points,
.circle-referral{
    display:flex;
    align-items:flex-start;
    gap:16px;
}

.circle-referral{
    padding-left:24px;
    border-left:1px solid var(--border);
}

.circle-panel-icon{
    flex:none;
    display:flex;
    align-items:center;
    justify-content:center;
    width:64px;
    height:64px;
    border-radius:50%;
    background:var(--rose-tint);
}

.circle-panel-icon img{
    width:30px;
    height:30px;
}

.circle-points-label{
    display:block;
    font-size:var(--fs-dense);
    color:var(--text);
    margin-bottom:4px;
}

.circle-balance-number{
    font-family:var(--font-heading);
    font-size:46px;
    color:var(--rose-deep);
    line-height:1;
}

.circle-balance-label{
    margin-top:2px;
    font-size:var(--fs-dense);
    color:var(--text-light);
}

.circle-balance-worth{
    margin-top:6px;
    font-size:var(--fs-dense);
}

.circle-decay-notice{
    margin:10px 0 0;
    font-size:var(--fs-dense);
    color:var(--text-light);
}

.circle-decay-use{
    margin:4px 0 0;
    font-size:var(--fs-dense);
    font-weight:500;
}

.circle-saved-total{
    margin:10px 0 0;
    font-size:var(--fs-dense);
    color:var(--primary);
    font-weight:600;
}

.circle-earn-nudge{
    margin:10px 0 0;
    font-size:var(--fs-dense);
    color:var(--rose-deep);
    font-weight:500;
}

.circle-referral-body{
    flex:1;
    min-width:0;
}

.circle-copy-row,
.circle-pin-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.circle-copy-row{
    padding:8px 8px 8px 14px;
    border:1px solid var(--border);
    border-radius:5px;
    background:var(--surface-tint);
}

.circle-pin-row{
    margin-top:10px;
    font-size:var(--fs-dense);
}

.circle-pin-row strong{
    letter-spacing:1px;
}

.circle-code-value{
    font-family:var(--font-heading);
    font-size:22px;
    color:var(--text);
    letter-spacing:1px;
}

.circle-referral-body .circle-share-whatsapp{
    display:flex;
    margin-top:14px;
    padding:12px 14px;
    white-space:nowrap;
}

.circle-share-whatsapp img{
    width:20px;
    height:20px;
    filter:brightness(0) invert(1);
}

/* "Save to WhatsApp" is an outline button (see .circle-welcome-
   actions), so its icon stays its natural gold rather than the
   white used for the solid-green share buttons. */
.circle-share-whatsapp--self img{
    filter:none;
}

.circle-panel-rules{
    padding:24px 26px;
    background:var(--surface-tint);
    border-left:1px solid var(--border);
}

.circle-panel-rules h3{
    margin:0 0 14px;
    font-size:22px;
    color:var(--rose-deep);
}

.circle-panel-rules ol{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.circle-panel-rules li{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 14px;
    border-radius:6px;
    background:var(--rose-tint);
    font-size:var(--fs-dense);
}

.circle-rule-num{
    flex:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    border-radius:50%;
    background:var(--rose-deep);
    color:var(--white);
    font-size:12px;
    font-weight:600;
}

.circle-dashboard-activity{
    margin-top:24px;
}

.circle-dashboard-activity h3{
    font-size:18px;
    margin-bottom:10px;
}

.circle-activity-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 14px;
    border:1px solid var(--border);
    border-radius:6px;
    margin-bottom:8px;
    font-size:var(--fs-dense);
}

/* Low-points / zero-points share banner */
.circle-share-banner{
    display:flex;
    align-items:center;
    gap:20px;
    padding:20px 26px;
    border-radius:10px;
    background:var(--rose-tint);
    border:1px solid var(--border);
}

.circle-share-banner-icon{
    flex:none;
    display:flex;
    align-items:center;
    justify-content:center;
    width:60px;
    height:60px;
    border-radius:50%;
    background:var(--surface);
}

.circle-share-banner-icon img{
    width:30px;
    height:30px;
}

.circle-share-banner-text{
    flex:1;
    min-width:0;
}

.circle-share-banner-text h3{
    margin:0 0 4px;
    font-size:22px;
    color:var(--rose-deep);
}

.circle-share-banner-text p{
    margin:0;
    font-size:var(--fs-dense);
    color:var(--text-light);
}

.circle-share-pills{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-top:10px;
}

.circle-share-pills::before{
    content:"Or pick a message:";
    font-size:12px;
    color:var(--text-light);
}

.circle-share-pill{
    padding:4px 12px;
    border:1px solid var(--rose-deep);
    border-radius:20px;
    font-size:12px;
    color:var(--rose-deep);
    text-decoration:none;
    background:var(--surface);
    transition:background .2s, color .2s;
}

.circle-share-pill:hover{
    background:var(--rose-deep);
    color:var(--white);
}

.circle-share-banner .circle-share-whatsapp{
    flex:none;
    margin-top:0;
}

@media(max-width:900px){
    .circle-hero-inner,
    .circle-join-layout{
        grid-template-columns:1fr;
    }
    .circle-why-grid,
    .circle-welcome-grid{
        grid-template-columns:1fr 1fr;
    }
    .circle-hero-points{
        flex-direction:column;
        gap:14px;
    }
    .circle-hero-points li{
        border-left:none;
        padding-left:0;
        border-top:1px solid var(--border);
        padding-top:14px;
    }
    .circle-hero-points li:first-child{
        border-top:none;
        padding-top:0;
    }
    .circle-hero-image img{
        height:420px;
    }
    .circle-join-side{
        min-height:420px;
    }
    .circle-join-card{
        grid-template-columns:1fr;
        margin-top:-40px;
    }
    .circle-join-fields{
        grid-template-columns:1fr;
    }
    .circle-join-fields .btn-rose{
        grid-column:1;
        grid-row:auto;
    }
    .circle-testimonial-inner{
        flex-direction:column;
        text-align:center;
    }
    .circle-panel{
        grid-template-columns:1fr;
    }
    .circle-panel-rules{
        border-left:none;
        border-top:1px solid var(--border);
    }
}

@media(max-width:700px){
    .circle-panel-cols{
        grid-template-columns:1fr;
    }
    .circle-referral{
        padding-left:0;
        border-left:none;
        padding-top:20px;
        border-top:1px solid var(--border);
    }
    .circle-share-banner{
        flex-direction:column;
        align-items:flex-start;
    }
}

@media(max-width:600px){
    .circle-why-grid,
    .circle-welcome-grid{
        grid-template-columns:1fr;
    }
    .circle-hero-image-caption{
        top:18px;
        right:18px;
    }
    .circle-hero-image-caption li{
        font-size:15px;
    }
    .circle-hero-image-badge{
        width:110px;
        height:110px;
        right:16px;
        bottom:70px;
        font-size:10.5px;
    }
    .circle-join-card{
        padding:26px 22px;
    }
    .circle-join-side{
        min-height:360px;
    }
    /* Narrower column, less room to dodge the saree pattern - cover
       nearly the full width instead of fading out by 78%. */
    .circle-join-side::before{
        background:linear-gradient(to right, var(--rose-tint) 0%, rgba(247,239,233,.94) 55%, rgba(247,239,233,.8) 85%, rgba(247,239,233,.55) 100%);
    }
    .circle-join-side-content{
        max-width:none;
        padding:26px 22px;
    }
}
