/* Storely — under-construction page
   Recreated from the hifi design handoff (filotimo_creations_concept_website).
   Shares the Filotimo chrome (background, Greek-key borders, nav, footer)
   with the Home page stylesheet; each domain serves its own copy. */

/* Self-hosted variable fonts (latin subset, from Google Fonts). Same-origin +
   preloaded in the HTML so they arrive before the entrance animation starts —
   a late font swap reflows the page mid-fade and reads as stutter. */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/mulish-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Paint the document canvas itself. During fast scrolling on Android the
   browser can expose the canvas below/behind the fixed .bg layer before the
   compositor catches up (and on overscroll), and the canvas defaults to
   white — no fixed element can cover it. Same gradient, viewport-fixed, so
   any transiently exposed strip matches the site background. */
html {
    background: #2c2270; /* fallback where fixed-attachment gradients degrade */
    background-image: linear-gradient(135deg, #241a5e 0%, #3b2f8c 34%, #6f5aa0 56%, #c98a63 80%, #f4c24a 100%);
    background-attachment: fixed;
}

/* The prototype used overflow:hidden, but that clips content on short
   viewports; the fixed bg layers can't cause scrollbars, so normal flow
   scrolling only kicks in when content overflows. */
body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Mulish', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #fff;
}

/* Background: fixed dusk gradient + radial vignette overlay */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Large viewport height so the gradient still covers the screen once the
       Android URL bar recedes (inset:0 sizes to the small viewport only). */
    height: 100lvh;
    z-index: 0;
    background: linear-gradient(135deg, #241a5e 0%, #3b2f8c 34%, #6f5aa0 56%, #c98a63 80%, #f4c24a 100%);
}

.bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 80% at 50% 42%, rgba(255,236,190,.16), rgba(0,0,0,0) 55%),
        radial-gradient(140% 120% at 50% 120%, rgba(10,6,34,.55), rgba(0,0,0,0) 60%);
}

/* Greek-key column borders: repeating SVG tile strips down each edge */
.key-border {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 26px;
    opacity: .75;
    z-index: 1;
    pointer-events: none;
    background-repeat: repeat-y;
}

.key-border.left {
    left: clamp(10px, 1.8vw, 30px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='36'%3E%3Cpath d='M4 5 H22 V23 H10 V11 H16 V17' fill='none' stroke='%23f4c24a' stroke-width='2.2'/%3E%3C/svg%3E");
}

.key-border.right {
    right: clamp(10px, 1.8vw, 30px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='36'%3E%3Cpath d='M22 5 H4 V23 H16 V11 H10 V17' fill='none' stroke='%23f4c24a' stroke-width='2.2'/%3E%3C/svg%3E");
}

/* Content layer */
.page {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 clamp(52px, 8vw, 150px);
}

/* Nav */
nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 26px 0 8px;
}

.wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 27px;
    letter-spacing: .5px;
    text-decoration: none;
}

.wordmark .filotimo { color: #fff; font-weight: 700; }
.wordmark .creations { color: #f4c24a; font-weight: 500; }

/* Gold-outlined pill for nav actions (e.g. the Home button on the policy
   page). Sits opposite the wordmark via the nav's space-between. */
.nav-link {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    padding: 9px 20px;
    border: 1px solid rgba(244,194,74,.5);
    border-radius: 999px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-link:hover {
    background: rgba(244,194,74,.14);
    border-color: #f4c24a;
    color: #f4c24a;
}

/* Main */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeup .8s ease both;
}

.logo-tile {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: linear-gradient(140deg, #f4c24a, #e79a4f);
    box-shadow: 0 20px 44px -12px rgba(18,10,58,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 52px;
    color: #fff;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(38px, 5.6vw, 68px);
    line-height: 1.02;
    letter-spacing: .5px;
    max-width: 15ch;
    margin-top: 26px;
    text-wrap: balance;
}

main p {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.65;
    color: rgba(255,255,255,.85);
    max-width: 56ch;
    margin-top: 22px;
    text-wrap: pretty;
}

main p + p { margin-top: 14px; }

.coming-soon {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255,255,255,.7);
    margin-top: 38px;
}

/* Invitation to request a demo store, shown under COMING SOON. */
.demo-cta {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.6;
    color: rgba(255,255,255,.8);
    max-width: 46ch;
    margin-top: 18px;
    text-wrap: pretty;
}

.demo-cta a {
    color: #f4c24a;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(244,194,74,.4);
    transition: border-color .2s ease;
}

.demo-cta a:hover { border-color: #f4c24a; }

/* Footer */
footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.18);
    padding: 18px 0 26px;
}

.footer-copy {
    font-size: 12.5px;
    color: rgba(255,255,255,.62);
}

.footer-links { display: flex; gap: 22px; }

.footer-links button,
.footer-links a {
    background: none;
    border: none;
    padding: 0;
    font-family: 'Mulish', sans-serif;
    font-size: 12.5px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease;
}

.footer-links button:hover,
.footer-links a:hover { color: #f4c24a; }

/* Privacy modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14,8,40,.62);
    backdrop-filter: blur(4px);
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
    width: min(600px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    background: #faf6ee;
    color: #241a5e;
    border-radius: 18px;
    border-top: 5px solid #f4c24a;
    padding: 40px 40px 34px;
    box-shadow: 0 40px 90px -20px rgba(10,6,34,.7);
    position: relative;
    animation: modalin .4s ease both;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #9a92b8;
    cursor: pointer;
}

.modal-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #c58a3e;
    margin-bottom: 10px;
}

.modal h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.05;
    margin-bottom: 6px;
}

.modal .updated {
    font-size: 12.5px;
    color: #9a92b8;
    margin-bottom: 10px;
}

.modal p {
    font-size: 15px;
    line-height: 1.65;
    color: #4a4370;
    text-wrap: pretty;
    margin-top: 12px;
}

.modal a { color: #c58a3e; font-weight: 600; }

/* Keyframes */
@keyframes fadeup {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalin {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile: drop the decorative Greek-key strips (matching Home) and allow
   vertical scroll so nothing is cut off on short viewports */
@media (max-width: 720px) {
    .key-border { display: none; }

    .page { padding: 0 18px; }

    main { padding: 40px 0; }

    footer { justify-content: center; text-align: center; }
}
